improvement: update secret approval policy form to use filterable selects w/ UI revisions

This commit is contained in:
Scott Wilson
2024-11-29 10:44:05 -08:00
parent a18f3c2919
commit bb094f60c1
5 changed files with 238 additions and 319 deletions
+12
View File
@@ -0,0 +1,12 @@
import { TWorkspaceUser } from "@app/hooks/api/users/types";
export const getMemberLabel = (member: TWorkspaceUser) => {
const {
inviteEmail,
user: { firstName, lastName, username, email }
} = member;
return firstName || lastName
? `${firstName ?? ""} ${lastName ?? ""}`.trim()
: username || email || inviteEmail;
};