diff options
Diffstat (limited to 'thallium-frontend/src/App.tsx')
| -rw-r--r-- | thallium-frontend/src/App.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/thallium-frontend/src/App.tsx b/thallium-frontend/src/App.tsx index 0223c46..54782cf 100644 --- a/thallium-frontend/src/App.tsx +++ b/thallium-frontend/src/App.tsx @@ -15,6 +15,8 @@ const ErrorPage = React.lazy(() => import("./pages/ErrorPage")); const DesignSystem = React.lazy(() => import("./pages/DesignSystem")); const StorePage = React.lazy(() => import("./pages/StorePage")); +import { maybeRefreshTask } from "./api/jwt"; + const GlobalStyle = createGlobalStyle` html, body, #root { @@ -86,6 +88,8 @@ const router = createBrowserRouter([ function App() { const [isDarkMode, setIsDarkMode] = useState(false); + maybeRefreshTask(); + const theme = isDarkMode ? themes.dark : themes.light; useEffect(() => { @@ -94,7 +98,6 @@ function App() { setIsDarkMode(prefersDark); }, []); - return ( <ThemeProvider theme={theme}> <AppContainer> |