Simplifie toast handling

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-07-26 12:21:58 +02:00
parent 1d629f2557
commit 40947a2a68
4 changed files with 24 additions and 29 deletions

View File

@@ -26,8 +26,8 @@ export interface IToast<C extends ComponentClass> {
icon?: string;
component: C;
className?: string;
bodyClassName?: string;
props?: Omit<React.ComponentProps<C>, "toastKey">; // toastKey is injected by ToastContainer
supplyWholeBody?: boolean;
}
/**