From c03bae57b4f2b59aecfdb834baef3fcee0d354cc Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 11 Sep 2024 16:00:47 +0100 Subject: [PATCH] Redirect to team page from dashboard --- src/components/Dashboard/DashboardPage.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Dashboard/DashboardPage.tsx b/src/components/Dashboard/DashboardPage.tsx index c696457bc..639acfb93 100644 --- a/src/components/Dashboard/DashboardPage.tsx +++ b/src/components/Dashboard/DashboardPage.tsx @@ -85,9 +85,10 @@ export function DashboardPage(props: DashboardPageProps) { href: `/respond-invite?i=${team.memberId}`, } : { - onClick: () => { - setSelectedTeamId(team._id); - }, + href: `/team/activity?t=${team._id}`, + // onClick: () => { + // setSelectedTeamId(team._id); + // }, })} avatar={avatarUrl} /> @@ -97,7 +98,7 @@ export function DashboardPage(props: DashboardPageProps) { label="+ Create Team" isActive={false} href="/team/new" - className="border bg-transparent border-dashed text-gray-500 border-gray-300 text-sm px-3 hover:border-gray-600 hover:text-black text-[13px]" + className="border border-dashed border-gray-300 bg-transparent px-3 text-[13px] text-sm text-gray-500 hover:border-gray-600 hover:text-black" /> )}