aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/components
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-06 02:34:49 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-06 02:34:49 -0400
commit09c25cea0e945652795ec6a2632108f0079a8680 (patch)
tree669bca6fefe4a82f156483ffe485ded955b7a9fa /src/views/components
parent9a07689dfeb736341b4f1b378e0ec758ea9cd0ff (diff)
downloaddonetick-frontend-09c25cea0e945652795ec6a2632108f0079a8680.tar.gz
donetick-frontend-09c25cea0e945652795ec6a2632108f0079a8680.tar.bz2
donetick-frontend-09c25cea0e945652795ec6a2632108f0079a8680.zip
Add force refresh functionality to NavBar component
Diffstat (limited to 'src/views/components')
-rw-r--r--src/views/components/NavBar.jsx4
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,