Skip to content

Commit

Permalink
fix (sandbox): replace browserrouter with hashrouter
Browse files Browse the repository at this point in the history
  • Loading branch information
pastaghost committed Jul 12, 2023
1 parent 5250cc9 commit fac5ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/sandbox/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
6 changes: 3 additions & 3 deletions packages/sandbox/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@fontsource/inter'
import '@fontsource/work-sans'

import { Box, ChakraProvider, Grid, GridItem } from '@chakra-ui/react'
import { BrowserRouter } from 'react-router-dom'
import { HashRouter as Router } from 'react-router-dom'

// import { ColorModeSwitcher } from './ColorModeSwitcher'
import { Footer } from './components/Layout/Footer/Footer'
Expand All @@ -13,7 +13,7 @@ import { theme } from './theme'

export const App = () => (
<ChakraProvider theme={theme}>
<BrowserRouter>
<Router>
<Box textAlign='center' fontSize='xl'>
<Grid
minH='100vh'
Expand Down Expand Up @@ -45,6 +45,6 @@ export const App = () => (
</GridItem>
</Grid>
</Box>
</BrowserRouter>
</Router>
</ChakraProvider>
)

0 comments on commit fac5ffb

Please sign in to comment.