Merge pull request #4855 from matrix-org/t3chguy/download_toast

Add Generic Expiring Toast and timing hooks
This commit is contained in:
Michael Telatynski 2020-06-30 17:02:04 +01:00 committed by GitHub
commit f269aefe18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 122 additions and 2 deletions

View file

@ -24,7 +24,7 @@ export interface IToast<C extends keyof JSX.IntrinsicElements | JSXElementConstr
title: string;
icon?: string;
component: C;
props?: React.ComponentProps<C>;
props?: Omit<React.ComponentProps<C>, "toastKey">; // toastKey is injected by ToastContainer
}
/**