File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2- import { BrowserRouter , Route , Switch , Redirect } from "react-router-dom" ;
2+ import { HashRouter , Route , Switch , Redirect } from "react-router-dom" ;
33
44// components
55import Layout from "./Layout" ;
@@ -16,7 +16,7 @@ export default function App() {
1616 var { isAuthenticated } = useUserState ( ) ;
1717
1818 return (
19- < BrowserRouter >
19+ < HashRouter >
2020 < Switch >
2121 < Route exact path = "/" render = { ( ) => < Redirect to = "/app/dashboard" /> } />
2222 < Route
@@ -28,7 +28,7 @@ export default function App() {
2828 < PublicRoute path = "/login" component = { Login } />
2929 < Route component = { Error } />
3030 </ Switch >
31- </ BrowserRouter >
31+ </ HashRouter >
3232 ) ;
3333
3434 // #######################################################################
Original file line number Diff line number Diff line change 11import React from "react" ;
22import {
3- BrowserRouter ,
43 Route ,
54 Switch ,
65 Redirect ,
@@ -35,7 +34,6 @@ function Layout(props) {
3534
3635 return (
3736 < div className = { classes . root } >
38- < BrowserRouter >
3937 < >
4038 < Header history = { props . history } />
4139 < Sidebar />
@@ -61,7 +59,6 @@ function Layout(props) {
6159 </ Switch >
6260 </ div >
6361 </ >
64- </ BrowserRouter >
6562 </ div >
6663 ) ;
6764}
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ export default makeStyles(theme => ({
4343 flexGrow : 1 ,
4444 padding : theme . spacing ( 3 ) ,
4545 } ,
46- sidebarList : {
46+ /* sidebarList: {
4747 marginTop: theme.spacing(6),
48- } ,
48+ }, */
4949 mobileBackButton : {
5050 marginTop : theme . spacing ( 0.5 ) ,
5151 marginLeft : theme . spacing ( 3 ) ,
You can’t perform that action at this time.
0 commit comments