wip: no progress alert

chore/team-member
Arik Chakma 1 year ago
parent dac0e9f28f
commit bf49c023e7
  1. 13
      src/components/TeamMembers/MemberActionDropdown.tsx
  2. 9
      src/components/TeamMembers/TeamMemberItem.tsx

@ -27,8 +27,7 @@ export function MemberActionDropdown({
async function resendInvite() {
const { response, error } = await httpPatch(
`${import.meta.env.PUBLIC_API_URL}/v1-resend-invite/${member.teamId}/${
member._id
`${import.meta.env.PUBLIC_API_URL}/v1-resend-invite/${member.teamId}/${member._id
}`,
{}
);
@ -59,11 +58,11 @@ export function MemberActionDropdown({
},
...(['invited'].includes(member.status)
? [
{
name: 'Resend Invite',
handleClick: resendInvite,
},
]
{
name: 'Resend Invite',
handleClick: resendInvite,
},
]
: []),
];
return (

@ -37,8 +37,15 @@ export function TeamMemberItem(props: TeamMemberProps) {
<MemberRoleBadge role={member.role} />
</span>
<div className="flex items-center">
<h3 className="inline-grid grid-cols-[auto_auto] items-center font-medium">
<h3 className="inline-grid grid-cols-[auto_auto_auto] items-center font-medium">
<span className="truncate">{member.name}</span>
{
!hasProgress && (
<span className="ml-2 text-xs font-normal bg-gray-600 text-white rounded-full sm:inline px-2 py-0.5">
No Progress
</span>
)
}
{member.userId === userId && (
<span className="ml-2 hidden text-xs font-normal text-blue-500 sm:inline">
You

Loading…
Cancel
Save