fix(bank/nui): fix notification to be removed after x amount of seconds

This commit is contained in:
chip committed 2020-11-06 02:21:34 +01:00
1 parent c7faca15ed
commit a7b0100870
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ function Notification({ children, handleClose, open }) {
<Snackbar
className={classes.snackBar}
anchorOrigin={{ horizontal, vertical }}
//ClickAwayListenerProps={{ onClickAway: () => null }}
ClickAwayListenerProps={{ onClickAway: () => setTimeout(() => { handleClose() }, 5000) }}
onClose={handleClose}
open={open}
TransitionComponent={Fade}