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}
label={team.name}
isActive={team._id === selectedTeamId}
onClick={() => {
if (team.status === 'invited') {
window.location.href = `/respond-invite?i=${team.memberId}`;
return;
}
setSelectedTeamId(team._id);
}}
{...(team.status === 'invited'
? {
href: `/respond-invite?i=${team.memberId}`,
}
: {
onClick: () => {
setSelectedTeamId(team._id);
},
})}
avatar={avatarUrl}
/>
);

@ -240,6 +240,22 @@ export function PersonalDashboard(props: PersonalDashboardProps) {
})}
</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">
Role Based Roadmaps

Loading…
Cancel
Save