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 1
1
import React from "react" ;
2
- import { BrowserRouter , Route , Switch , Redirect } from "react-router-dom" ;
2
+ import { HashRouter , Route , Switch , Redirect } from "react-router-dom" ;
3
3
4
4
// components
5
5
import Layout from "./Layout" ;
@@ -16,7 +16,7 @@ export default function App() {
16
16
var { isAuthenticated } = useUserState ( ) ;
17
17
18
18
return (
19
- < BrowserRouter >
19
+ < HashRouter >
20
20
< Switch >
21
21
< Route exact path = "/" render = { ( ) => < Redirect to = "/app/dashboard" /> } />
22
22
< Route
@@ -28,7 +28,7 @@ export default function App() {
28
28
< PublicRoute path = "/login" component = { Login } />
29
29
< Route component = { Error } />
30
30
</ Switch >
31
- </ BrowserRouter >
31
+ </ HashRouter >
32
32
) ;
33
33
34
34
// #######################################################################
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import {
3
- BrowserRouter ,
4
3
Route ,
5
4
Switch ,
6
5
Redirect ,
@@ -35,7 +34,6 @@ function Layout(props) {
35
34
36
35
return (
37
36
< div className = { classes . root } >
38
- < BrowserRouter >
39
37
< >
40
38
< Header history = { props . history } />
41
39
< Sidebar />
@@ -61,7 +59,6 @@ function Layout(props) {
61
59
</ Switch >
62
60
</ div >
63
61
</ >
64
- </ BrowserRouter >
65
62
</ div >
66
63
) ;
67
64
}
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ export default makeStyles(theme => ({
43
43
flexGrow : 1 ,
44
44
padding : theme . spacing ( 3 ) ,
45
45
} ,
46
- sidebarList : {
46
+ /* sidebarList: {
47
47
marginTop: theme.spacing(6),
48
- } ,
48
+ }, */
49
49
mobileBackButton : {
50
50
marginTop : theme . spacing ( 0.5 ) ,
51
51
marginLeft : theme . spacing ( 3 ) ,
You can’t perform that action at this time.
0 commit comments