|
|
@ -80,14 +80,15 @@ export function DashboardPage(props: DashboardPageProps) { |
|
|
|
key={team._id} |
|
|
|
key={team._id} |
|
|
|
label={team.name} |
|
|
|
label={team.name} |
|
|
|
isActive={team._id === selectedTeamId} |
|
|
|
isActive={team._id === selectedTeamId} |
|
|
|
onClick={() => { |
|
|
|
{...(team.status === 'invited' |
|
|
|
if (team.status === 'invited') { |
|
|
|
? { |
|
|
|
window.location.href = `/respond-invite?i=${team.memberId}`; |
|
|
|
href: `/respond-invite?i=${team.memberId}`, |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
: { |
|
|
|
|
|
|
|
onClick: () => { |
|
|
|
setSelectedTeamId(team._id); |
|
|
|
setSelectedTeamId(team._id); |
|
|
|
}} |
|
|
|
}, |
|
|
|
|
|
|
|
})} |
|
|
|
avatar={avatarUrl} |
|
|
|
avatar={avatarUrl} |
|
|
|
/> |
|
|
|
/> |
|
|
|
); |
|
|
|
); |
|
|
|