From f2d6ba5679b31d158f8de61f7d4648a1e5be78c1 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Sat, 15 Jan 2022 18:22:35 -0800 Subject: [PATCH] fixing better nav onclick --- components/Dashboard/Header.tsx | 48 ++++++++++++--------------------- 1 file changed, 17 insertions(+), 31 deletions(-) diff --git a/components/Dashboard/Header.tsx b/components/Dashboard/Header.tsx index 42f9745..7fb77d1 100644 --- a/components/Dashboard/Header.tsx +++ b/components/Dashboard/Header.tsx @@ -83,8 +83,8 @@ export default function Header() { const TeamsMenu = ( - }> - + }> + @@ -96,16 +96,12 @@ export default function Header() { : <>} + onClick={() => { + console.log("going to " + uteam.id); + window.location.href = "/teams/" + uteam.id; + }} > - + ); })} @@ -113,35 +109,25 @@ export default function Header() { {/* create TEAM */} - }> - + } + onClick={() => router.push("/teams/create")} + > + ); const UserMenu = ( - - + router.push("/teams/profile")}> + - - + + );