Skip to content

Commit

Permalink
feat: Added base page at /admin
Browse files Browse the repository at this point in the history
  • Loading branch information
raarielgrace committed Dec 11, 2024
1 parent 20b5b9b commit cf97a77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/routes/ViewRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Routes, Route } from 'react-router-dom';

import LandingPage from '../views/LandingPage/LandingPage';
import FarmInformation from '../views/FarmInformation/FarmInformation';
import AdminDashboard from '@/views/AdminDashboard/AdminDashboard';

export default function ViewRouter() {
return (
Expand All @@ -17,6 +18,10 @@ export default function ViewRouter() {
path="/farm-information"
Component={FarmInformation}
/>
<Route
path="/admin"
Component={AdminDashboard}
/>
</Routes>
);
}
9 changes: 9 additions & 0 deletions frontend/src/views/AdminDashboard/AdminDashboard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Card } from '@/components/common';

export default function AdminDashboard() {
return (
<Card>
<div>Ho ho ho! Cherry Swiss Miss!</div>
</Card>
);
}

0 comments on commit cf97a77

Please sign in to comment.