fix: invite team

feat/dashboard
Arik Chakma 3 months ago
parent a57f7e7a30
commit e03feffc71
  1. 17
      src/components/Dashboard/DashboardPage.tsx
  2. 16
      src/components/Dashboard/PersonalDashboard.tsx

@ -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}
/> />
); );

@ -240,6 +240,22 @@ export function PersonalDashboard(props: PersonalDashboardProps) {
})} })}
</div> </div>
)} )}
{!isLoading && enrichedProjects.length === 0 && (
<div className="flex min-h-[82px] flex-col items-center justify-center rounded-md border text-sm text-gray-500">
<span>No projects found.</span>
<span>
Start&nbsp;
<a
href="/backend/projects"
target="_blank"
className="underline underline-offset-2 hover:no-underline"
>
Backend Projects
</a>
.
</span>
</div>
)}
<h2 className="mb-3 mt-6 text-xs uppercase text-gray-400"> <h2 className="mb-3 mt-6 text-xs uppercase text-gray-400">
Role Based Roadmaps Role Based Roadmaps

Loading…
Cancel
Save