From 09c25cea0e945652795ec6a2632108f0079a8680 Mon Sep 17 00:00:00 2001
From: Mo Tarbin <mhed.t91@gmail.com>
Date: Sat, 6 Jul 2024 02:34:49 -0400
Subject: Add force refresh functionality to NavBar component

---
 src/views/components/NavBar.jsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/views/components/NavBar.jsx')

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,
-- 
cgit 

