creating dynamic route for the team and fixing other things

This commit is contained in:
Arjun Patel
2022-01-14 01:51:06 -08:00
parent c05c5af384
commit 320fd5bd0a
3 changed files with 24 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
import { useRouter } from 'next/router'
export default function Team() {
const router = useRouter()
const { teamid } = router.query
// check if the team is a valid team route and show the dashboard for the team
return (
<span>the team is {teamid}</span>
)
}