From a7b01008705e527da7578d7e00d2c279351fcfc9 Mon Sep 17 00:00:00 2001 From: chip Date: Fri, 6 Nov 2020 02:21:34 +0100 Subject: [PATCH] fix(bank/nui): fix notification to be removed after x amount of seconds --- phone/src/ui/components/Notification.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phone/src/ui/components/Notification.tsx b/phone/src/ui/components/Notification.tsx index 37da3a7..03254f1 100644 --- a/phone/src/ui/components/Notification.tsx +++ b/phone/src/ui/components/Notification.tsx @@ -32,7 +32,7 @@ function Notification({ children, handleClose, open }) { null }} + ClickAwayListenerProps={{ onClickAway: () => setTimeout(() => { handleClose() }, 5000) }} onClose={handleClose} open={open} TransitionComponent={Fade}