Skip to content

Commit

Permalink
switch BrowserRouter with HashRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeshau committed Nov 11, 2024
1 parent 839c9c5 commit 7cb6d9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AboutPage from "./pages/AboutPage";

import "./styles.css";
import {
BrowserRouter as Router,
HashRouter as Router, // Use HashRouter instead of BrowserRouter
Route,
Routes,
Link,
Expand All @@ -22,6 +22,7 @@ const App = () => {
<Route path="/" element={<MainPage />} />
<Route path="/about" element={<AboutPage/>} />
<Route element={<>Not found</>} />
<Route path="*" element={<>Not found</>} />
</Routes>
</div>
</Router>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Video = memo(() => {
return (
<Box sx={{ width: '100%', height: '100%' }}>
<video style={{ width: '100%', height: '100%' }} controls>
{/* <source src="/video.mp4" type="video/mp4" /> */}
<source src="/video.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
</Box>
Expand Down

0 comments on commit 7cb6d9c

Please sign in to comment.