From 93505f006c6862c0929304492e0d37bf29406c00 Mon Sep 17 00:00:00 2001 From: gorkem-bwl Date: Tue, 28 Apr 2026 23:55:27 -0400 Subject: [PATCH] feat(account): side-by-side name and password fields in Add Member modal - AddTeamMemberDialog: First name / Last name now share a row, and Password / Confirm password share a row. Each field uses sx={flex:1} so the row totals match the width of the email/role rows below. - InviteTeamMemberDialog: drop the redundant mt={theme.spacing(...)} workaround on the form Stack (the new Dialog component provides this spacing). - Constants conformance: spacing literals replaced with LAYOUT.XS. --- .../components/AddTeamMemberDialog.tsx | 132 ++++++++++-------- .../components/InviteTeamMemberDialog.tsx | 6 +- 2 files changed, 72 insertions(+), 66 deletions(-) diff --git a/client/src/Pages/Account/components/AddTeamMemberDialog.tsx b/client/src/Pages/Account/components/AddTeamMemberDialog.tsx index e584d3235..aff0c3cf2 100644 --- a/client/src/Pages/Account/components/AddTeamMemberDialog.tsx +++ b/client/src/Pages/Account/components/AddTeamMemberDialog.tsx @@ -9,6 +9,7 @@ import { useAddTeamMemberForm } from "@/Hooks/useAddTeamMemberForm"; import type { AddTeamMemberFormData } from "@/Validation/addTeamMember"; import type { UserRole, User } from "@/Types/User"; import { usePost } from "@/Hooks/UseApi"; +import { LAYOUT } from "@/Utils/Theme/constants"; interface AddTeamMemberDialogProps { open: boolean; @@ -82,38 +83,40 @@ export const AddTeamMemberDialog = ({ maxWidth="sm" fullWidth > - - ( - - )} - /> - ( - - )} - /> + + + ( + + )} + /> + ( + + )} + /> + )} /> - ( - - )} - /> - ( - - )} - /> + + ( + + )} + /> + ( + + )} + /> + ); diff --git a/client/src/Pages/Account/components/InviteTeamMemberDialog.tsx b/client/src/Pages/Account/components/InviteTeamMemberDialog.tsx index cf72e3d24..e23f24e53 100644 --- a/client/src/Pages/Account/components/InviteTeamMemberDialog.tsx +++ b/client/src/Pages/Account/components/InviteTeamMemberDialog.tsx @@ -9,6 +9,7 @@ import type { UserRole } from "@/Types/User"; import { useInviteForm } from "@/Hooks/useInviteForm"; import type { InviteFormData } from "@/Validation/invite"; import { usePost } from "@/Hooks/UseApi"; +import { LAYOUT } from "@/Utils/Theme/constants"; const CLIENT_HOST = import.meta.env.VITE_APP_CLIENT_HOST; @@ -95,10 +96,7 @@ export const InviteTeamMemberDialog = ({ } > - +