diff options
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx index e8fbce1..64b1760 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,6 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles'; import { CssBaseline } from '@material-ui/core'; +import { BrowserRouter } from 'react-router-dom'; import teal from '@material-ui/core/colors/teal'; import 'typeface-roboto'; @@ -9,7 +10,7 @@ import Header from './components/Header/Header'; import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow'; import Page from './pages/Page'; import { AuthProvider } from './hooks/useAuth'; -import { NavigationProvider } from './hooks/useNavigate'; + const theme = createMuiTheme({ palette: { @@ -23,7 +24,7 @@ const theme = createMuiTheme({ const App: React.FC = () => { return ( - <NavigationProvider> + <BrowserRouter> <AuthProvider> <ThemeProvider theme={theme}> <CssBaseline /> @@ -32,7 +33,7 @@ const App: React.FC = () => { <ScrollTopArrow /> </ThemeProvider> </AuthProvider> - </NavigationProvider> + </BrowserRouter> ); }; |