feat(ui): changed back to relative time distance with tooltip of detailed time

This commit is contained in:
Akhil Mohan
2024-03-29 22:36:46 +05:30
parent 31ad6b0c86
commit 00f2d40803
6 changed files with 184 additions and 106 deletions
@@ -49,6 +49,7 @@ const MAX_ROLES_TO_BE_SHOWN_IN_TABLE = 2;
const formatRoleName = (role: string, customRoleName?: string) => {
if (role === ProjectMembershipRole.Custom) return customRoleName;
if (role === ProjectMembershipRole.Member) return "Developer";
if (role === ProjectMembershipRole.NoAccess) return "No access";
return role;
};
export const IdentityTab = withProjectPermission(
@@ -173,7 +174,9 @@ export const IdentityTab = withProjectPermission(
return (
<Tag key={roleId}>
<div className="flex items-center space-x-2">
<div>{formatRoleName(role, customRoleName)}</div>
<div className="capitalize">
{formatRoleName(role, customRoleName)}
</div>
{isTemporary && (
<div>
<Tooltip