wip: no progress alert

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

@ -27,8 +27,7 @@ export function MemberActionDropdown({
async function resendInvite() { async function resendInvite() {
const { response, error } = await httpPatch( const { response, error } = await httpPatch(
`${import.meta.env.PUBLIC_API_URL}/v1-resend-invite/${member.teamId}/${ `${import.meta.env.PUBLIC_API_URL}/v1-resend-invite/${member.teamId}/${member._id
member._id
}`, }`,
{} {}
); );

@ -37,8 +37,15 @@ export function TeamMemberItem(props: TeamMemberProps) {
<MemberRoleBadge role={member.role} /> <MemberRoleBadge role={member.role} />
</span> </span>
<div className="flex items-center"> <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> <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 && ( {member.userId === userId && (
<span className="ml-2 hidden text-xs font-normal text-blue-500 sm:inline"> <span className="ml-2 hidden text-xs font-normal text-blue-500 sm:inline">
You You

Loading…
Cancel
Save