Skip to content

Commit

Permalink
fixed routing path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumanbhadra committed Oct 25, 2024
1 parent e5b2664 commit 15700a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Pages/Boardgame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function Boardgame() {
onClick={() => handleInstantPlay(board)}
className="px-4 py-2 text-white bg-blue-500 rounded-lg opacity-0 transition-opacity duration-700 delay-300 group-hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-blue-500"
>
<Link to="/TicTacToe">Instant Play</Link>
<Link to="/boardgame/TicTacToe">Instant Play</Link>
</button>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/router/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const router = createBrowserRouter(
<Route path="/about" element={<About />} />
<Route path="/menu" element={<Menu />} />
<Route path="/boardgame" element={<Boardgame />} />
<Route path="/boardgame/TicTacToe" element={<TicTacToe />} />
<Route path="/events" element={<Event />} />
<Route path="/book" element={<MyBook />} />
<Route path="/reservation" element={<Register />} />
Expand All @@ -42,7 +43,7 @@ const router = createBrowserRouter(
<Route path="/email-verify" element={<EmailVerify />} />
<Route path="/membership" element={<Membership />} />
<Route path="/help" element={<HelpAndSupport />} />
<Route path="/TicTacToe" element={<TicTacToe />} />


</Route>
)
Expand Down

0 comments on commit 15700a6

Please sign in to comment.