mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-04 22:24:14 -04:00
Fix snackbar key warning
This commit is contained in:
parent
809bfc49cd
commit
22dd3c65d2
@ -61,7 +61,8 @@ export const SnackbarProvider = ({ children }: { children: ReactElement | ReactE
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
addPortal("snackbar", <Snackbar {...top} />);
|
const { key, ...props } = top;
|
||||||
|
addPortal("snackbar", <Snackbar key={key} {...props} />);
|
||||||
timeout.current = setTimeout(() => {
|
timeout.current = setTimeout(() => {
|
||||||
removePortal("snackbar");
|
removePortal("snackbar");
|
||||||
updatePortal();
|
updatePortal();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user