diff --git a/src/components/DemographicInformationInput.tsx b/src/components/DemographicInformationInput.tsx index 0728ca4e..2505b919 100644 --- a/src/components/DemographicInformationInput.tsx +++ b/src/components/DemographicInformationInput.tsx @@ -106,7 +106,7 @@ export default function DemographicInformationInput({user, mutateUser}: Props) { {user.type === "corporate" && ( - + )} {user.type !== "corporate" && } diff --git a/src/components/UserCard.tsx b/src/components/UserCard.tsx index 00f80961..46647976 100644 --- a/src/components/UserCard.tsx +++ b/src/components/UserCard.tsx @@ -517,7 +517,7 @@ const UserCard = ({ name="position" onChange={setPosition} type="text" - label="Position" + label="Department" defaultValue={position} placeholder="CEO, Head of Marketing..." disabled diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index f4d78455..40e8b68b 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -499,7 +499,7 @@ function UserProfile({user, mutateUser}: Props) { onChange={setPosition} defaultValue={position} type="text" - label="Position" + label="Department" placeholder="CEO, Head of Marketing..." required /> diff --git a/src/utils/users.ts b/src/utils/users.ts index 619d9ea9..bdcb262e 100644 --- a/src/utils/users.ts +++ b/src/utils/users.ts @@ -32,7 +32,7 @@ export const exportListToExcel = (rowUsers: User[], users: User[], groups: Group gender: user.demographicInformation?.gender ? capitalize(user.demographicInformation.gender) : "N/A", verified: user.isVerified?.toString() || "FALSE", })); - const header = "Name,Email,Type,Company Name,Expiry Date,Country,Phone,Employment/Position,Gender,Verification"; + const header = "Name,Email,Type,Company Name,Expiry Date,Country,Phone,Employment/Department,Gender,Verification"; const rowsString = rows.map((x) => Object.values(x).join(",")).join("\n"); return `${header}\n${rowsString}`;