CHANGE router type

Signed-off-by: Damian Krysta <damian@krysta.dev>
This commit is contained in:
Damian Krysta 2022-02-02 21:20:36 +01:00 committed by Scott Lamb
parent 3240c20eae
commit 28208b7bb4

View File

@ -14,7 +14,7 @@ import ErrorBoundary from "./ErrorBoundary";
import { SnackbarProvider } from "./snackbars"; import { SnackbarProvider } from "./snackbars";
import AdapterDateFns from "@mui/lab/AdapterDateFns"; import AdapterDateFns from "@mui/lab/AdapterDateFns";
import "./index.css"; import "./index.css";
import { BrowserRouter } from "react-router-dom"; import {HashRouter} from "react-router-dom";
const theme = createTheme({ const theme = createTheme({
palette: { palette: {
@ -35,9 +35,9 @@ ReactDOM.render(
<ErrorBoundary> <ErrorBoundary>
<LocalizationProvider dateAdapter={AdapterDateFns}> <LocalizationProvider dateAdapter={AdapterDateFns}>
<SnackbarProvider autoHideDuration={5000}> <SnackbarProvider autoHideDuration={5000}>
<BrowserRouter > <HashRouter >
<App /> <App />
</BrowserRouter> </HashRouter>
</SnackbarProvider> </SnackbarProvider>
</LocalizationProvider> </LocalizationProvider>
</ErrorBoundary> </ErrorBoundary>