diff options
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r-- | modern/src/SocketController.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index cb16bf89..28ca29ab 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -7,6 +7,7 @@ import { positionsActions, devicesActions, sessionActions } from './store'; import { useEffectAsync } from './reactHelper'; import { useTranslation } from './LocalizationProvider'; import { prefixString } from './common/stringUtils'; +import { snackBarDurationLongMs } from './common/duration'; const SocketController = () => { const dispatch = useDispatch(); @@ -93,7 +94,7 @@ const SocketController = () => { }} open={notification.show} message={notification.message} - autoHideDuration={5000} + autoHideDuration={snackBarDurationLongMs} onClose={() => setEvents(events.filter((e) => e.id !== notification.id))} /> ))} |