1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-10 07:50:05 +00:00

fix: use hash router instead of browser router in react app

This commit is contained in:
2021-10-19 18:39:06 +00:00
parent a5bfdf9503
commit c72867d5a7
3 changed files with 21 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react'
import { Route, BrowserRouter, Switch, Redirect } from 'react-router-dom'
import { Route, HashRouter, Switch, Redirect } from 'react-router-dom'
import { ThemeProvider } from '@mui/material/styles'
import { theme } from './theme'
@@ -10,7 +10,7 @@ import SASjsStudio from './containers/SASjsStudio'
function App() {
return (
<ThemeProvider theme={theme}>
<BrowserRouter>
<HashRouter>
<Header />
<Switch>
<Route exact path="/">
@@ -23,7 +23,7 @@ function App() {
<SASjsStudio />
</Route>
</Switch>
</BrowserRouter>
</HashRouter>
</ThemeProvider>
)
}