Skip to content

Commit

Permalink
fix(dashboard): Change to HashRouter to support refresh page
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Mar 19, 2022
1 parent ed8acea commit c1a40ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Suspense } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';
import { SnackbarProvider } from 'notistack';
import CssBaseline from '@mui/material/CssBaseline';
import { createTheme, ThemeProvider } from '@mui/material/styles';
Expand All @@ -16,7 +16,7 @@ import './i18n';

ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<HashRouter>
<CssBaseline />
<Suspense fallback={<PageCenterLoading />}>
<ExtraJSInitialize loadingComponent={<PageCenterLoading />}>
Expand All @@ -29,7 +29,7 @@ ReactDOM.render(
</ThemeProvider>
</ExtraJSInitialize>
</Suspense>
</BrowserRouter>
</HashRouter>
</React.StrictMode>,
document.getElementById('root'),
);
Expand Down

0 comments on commit c1a40ac

Please sign in to comment.