From a44890a6076d441000e22ace3d4930f709a09ab3 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 14 Jan 2022 01:55:57 -0800 Subject: [PATCH] adding admin route --- pages/teams/[teamid]/admin.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/teams/[teamid]/admin.tsx diff --git a/pages/teams/[teamid]/admin.tsx b/pages/teams/[teamid]/admin.tsx new file mode 100644 index 0000000..4497556 --- /dev/null +++ b/pages/teams/[teamid]/admin.tsx @@ -0,0 +1,12 @@ +import { useRouter } from 'next/router' + +export default function TeamAdmin() { + const router = useRouter() + const { teamid } = router.query + + // check if the team is a valid team route and show the dashboard for the team + + return ( + this is the admin page for team: {teamid} + ) +} \ No newline at end of file