Rewrite toaster hook to not re-create the window (#217)

This commit is contained in:
AAGaming
2022-10-14 20:09:11 -04:00
committed by GitHub
parent 618abec97a
commit 3ac0abc82b
2 changed files with 14 additions and 25 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ const Toast: FunctionComponent<ToastProps> = ({ toast }) => {
return (
<div
style={{ '--toast-duration': `${toast.nToastDurationMS}ms` } as React.CSSProperties}
className={joinClassNames(toastClasses.ToastPopup, toastClasses.toastEnter)}
className={toastClasses.toastEnter}
>
<div
onClick={toast.data.onClick}