11import { lazy , Suspense } from "react" ;
22import { Route , Routes } from "react-router-dom" ;
33
4- import ResetPasswordPage from "@shared/pages/reset-password/reset-password " ;
5- import HowToPlay from "@shared/pages/how-to-play/how-to-play " ;
6- import AccountPage from "@shared/pages/account/Account " ;
7- import SupportPage from "@shared/pages/support/support " ;
8- import LicensePage from "@shared/pages/license/license " ;
9- import LoginPage from "@shared/pages/login/login " ;
10- import Users from "@shared/pages/home/Home " ;
4+ import ResetPasswordPage from "@/app/ shared/pages/reset-password/ResetPasswordPage " ;
5+ import HowToPlayPage from "@/app/ shared/pages/how-to-play/HowToPlayPage " ;
6+ import AccountPage from "@/app/ shared/pages/account/AccountPage " ;
7+ import SupportPage from "@/app/ shared/pages/support/SupportPage " ;
8+ import LicensePage from "@/app/ shared/pages/license/LicensePage " ;
9+ import LoginPage from "@/app/ shared/pages/login/LoginPage " ;
10+ import Users from "@/app/ shared/pages/home/HomePage " ;
1111
12- import ProtectedRoutes from "@shared/ProtectedRoutes" ;
12+ import ProtectedRoutes from "@/app/ shared/components /ProtectedRoutes" ;
1313
1414// Lazy load Admin component to improve load time
15- const Admin = lazy ( ( ) => import ( "./app/admin/pages/Admin " ) ) ;
15+ const Admin = lazy ( ( ) => import ( "./app/admin/pages/AdminLayout " ) ) ;
1616
17- import PuzzleInputPage from "@player/pages/puzzle_input/puzzle_input " ;
18- import CompetitionPage from "@player/pages/competition/competition " ;
19- import LeaderboardPage from "@player/pages/leaderboard/leaderboard " ;
20- import PuzzlePage from "@player/pages/puzzle/puzzle " ;
17+ import PuzzleInputPage from "@/app/ player/pages/puzzle-input/PuzzleInputPage " ;
18+ import CompetitionPage from "@/app/ player/pages/competition/CompetitionPage " ;
19+ import LeaderboardPage from "@/app/ player/pages/leaderboard/LeaderboardPage " ;
20+ import PuzzlePage from "@/app/ player/pages/puzzle/PuzzlePage " ;
2121
2222import { isStaff } from "@utils/permissions" ;
2323
@@ -34,7 +34,7 @@ const AppRoutes = () => {
3434 < Route path = "/login" element = { < LoginPage /> } />
3535 < Route path = "/reset-password" element = { < ResetPasswordPage /> } />
3636 < Route path = "/" element = { < Users /> } />
37- < Route path = "/how-to-play" element = { < HowToPlay /> } />
37+ < Route path = "/how-to-play" element = { < HowToPlayPage /> } />
3838 < Route path = "/support" element = { < SupportPage /> } />
3939 < Route path = "/license" element = { < LicensePage /> } />
4040
0 commit comments