aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-08-08 11:28:07 +0300
committerGitHub <noreply@github.com>2020-08-08 11:28:07 +0300
commit70d533d2bcbaa689d3de6ecb532997cd68a7a842 (patch)
tree0199ab8a91f3e1bd5df0865c10695dde20a5303f /src/index.tsx
parent84eaed2f29ac370eea7c4a7ded6fb3d4661c9679 (diff)
parent104c658fc411536e09931191721411de448f964f (diff)
downloadwhich-ui-70d533d2bcbaa689d3de6ecb532997cd68a7a842.tar.gz
Merge pull request #72 from which-ecosystem/feat/routing
Add basic routing
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx7
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>
);
};