Skip to content

Commit

Permalink
🐛 fix react-router problem for github pages (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-naeem committed Apr 24, 2022
1 parent b873a1e commit aed713e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom';
import { HashRouter, Navigate, Route, Routes } from 'react-router-dom';
import { Box, ChakraProvider, theme } from '@chakra-ui/react';
import Header from './components/Header';
import Footer from './components/Footer';
Expand All @@ -8,7 +8,7 @@ import Decoder from './routes/Decoder';

function App() {
return (
<BrowserRouter>
<HashRouter>
<ChakraProvider theme={theme}>
<Header />
<Box as="main" p={4} minH="calc(100vh - 70px - 70px)">
Expand All @@ -24,7 +24,7 @@ function App() {
</Box>
<Footer />
</ChakraProvider>
</BrowserRouter>
</HashRouter>
);
}

Expand Down

0 comments on commit aed713e

Please sign in to comment.