diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-06 02:34:49 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-06 02:34:49 -0400 |
commit | 09c25cea0e945652795ec6a2632108f0079a8680 (patch) | |
tree | 669bca6fefe4a82f156483ffe485ded955b7a9fa | |
parent | 9a07689dfeb736341b4f1b378e0ec758ea9cd0ff (diff) | |
download | donetick-frontend-09c25cea0e945652795ec6a2632108f0079a8680.tar.gz donetick-frontend-09c25cea0e945652795ec6a2632108f0079a8680.tar.bz2 donetick-frontend-09c25cea0e945652795ec6a2632108f0079a8680.zip |
Add force refresh functionality to NavBar component
-rw-r--r-- | src/views/components/NavBar.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/components/NavBar.jsx b/src/views/components/NavBar.jsx index 25463b2..939c9fd 100644 --- a/src/views/components/NavBar.jsx +++ b/src/views/components/NavBar.jsx @@ -155,6 +155,10 @@ const NavBar = () => { <ListItemContent>Logout</ListItemContent> </ListItemButton> <Typography + onClick={ + // force service worker to update: + () => window.location.reload(true) + } level='body-xs' sx={{ // p: 2, |