Skip to content

Commit

Permalink
Add sport center UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tructn committed May 29, 2024
1 parent 60da09e commit 7234f52
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const MatchesScreen = lazy(() => import("./screens/matches"));
const PlayerScreen = lazy(() => import("./screens/players"));
const HealthScreen = lazy(() => import("./screens/health"));
const LoginScreen = lazy(() => import("./screens/auth/login"));
const SportCenters = lazy(() => import("./screens/sportcenter"));
const PageNotFound = lazy(() => import("./screens/page-not-found"));

function App() {
Expand All @@ -16,6 +17,7 @@ function App() {
<Route path="/" element={<DashboardScreen />} />
<Route path="/players" element={<PlayerScreen />} />
<Route path="/matches" element={<MatchesScreen />} />
<Route path="/sportcenters" element={<SportCenters />} />
<Route path="/health" element={<HealthScreen />} />
<Route path="*" element={<PageNotFound />} />
</Route>
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/screens/app-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { FiChevronLeft } from "react-icons/fi";
import { NavLink, Outlet, useNavigate } from "react-router-dom";
import { Suspense } from "react";
import {
FaBuilding,
FaChartArea,
FaFighterJet,
FaHeartbeat,
Expand Down Expand Up @@ -91,6 +92,12 @@ function AppLayout() {
label="Players"
icon={<FaUserClock />}
/>
<NavItem
showLabel={!collapsed}
path="/sportcenters"
label="Sport Centers"
icon={<FaBuilding />}
/>
<NavItem
showLabel={!collapsed}
path="/health"
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/screens/sportcenter/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Page from "../../components/page";

export default function SportCenter() {
return (
<Page title="Sport Center">
<h3>Test</h3>
</Page>
);
}

0 comments on commit 7234f52

Please sign in to comment.