fix: Showing status for accounts not created in the workspace members (#1111)

This commit is contained in:
guru_sainath 2023-05-22 22:09:38 +05:30 committed by GitHub
parent 5c632921f8
commit aaffe37fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ const MembersSettings: NextPage = () => {
role: item.role,
status: true,
member: true,
accountCreated: true,
})) || []),
...(workspaceInvitations?.map((item) => ({
id: item.id,
@ -77,6 +78,7 @@ const MembersSettings: NextPage = () => {
role: item.role,
status: item.accepted,
member: false,
accountCreated: item?.accepted ? false : true,
})) || []),
];
@ -200,6 +202,11 @@ const MembersSettings: NextPage = () => {
<p>Pending</p>
</div>
)}
{member?.status && !member?.accountCreated && (
<div className="mr-2 flex items-center justify-center rounded-full bg-blue-500/20 px-2 py-1 text-center text-xs text-blue-500">
<p>Account not created</p>
</div>
)}
<CustomSelect
label={ROLE[member.role as keyof typeof ROLE]}
value={member.role}