diff options
author | Lucas Leite <lbl.lucasleite@gmail.com> | 2022-02-13 18:48:30 -0300 |
---|---|---|
committer | Lucas Leite <lbl.lucasleite@gmail.com> | 2022-02-13 18:48:30 -0300 |
commit | abadd4f29fd1fb7787fd0cf558855811e668251f (patch) | |
tree | bd9d114dacb62904cee2518a595078c11e2e2ea7 /modern | |
parent | 51a5b5119688333a478c185e20668529d10aa022 (diff) | |
download | trackermap-web-abadd4f29fd1fb7787fd0cf558855811e668251f.tar.gz trackermap-web-abadd4f29fd1fb7787fd0cf558855811e668251f.tar.bz2 trackermap-web-abadd4f29fd1fb7787fd0cf558855811e668251f.zip |
Changed notification approach
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/SocketController.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index 69932fce..e178abb6 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -79,7 +79,6 @@ const SocketController = () => { id: event.id, message: `${devices[event.deviceId]?.name}: ${t(prefixString('event', event.type))}`, show: true, - close: () => setEvents(events.filter((e) => e.id !== event.id)), }))); }, [events, devices]); @@ -95,7 +94,7 @@ const SocketController = () => { open={notification.show} message={notification.message} autoHideDuration={5000} - onClose={notification.close} + onClose={() => setEvents(events.filter((e) => e.id !== notification.id))} /> ))} </> |