From 9e9d561ea09f716b3ce64aa166f96e0e12b87c2e Mon Sep 17 00:00:00 2001 From: Shaikh Mohd Mudassir Hussain <84413543+Shaikh-Mudassir@users.noreply.github.com> Date: Fri, 6 Dec 2024 01:47:47 -0700 Subject: [PATCH] Comments were removed and spacing was added to all the stacks issue #1270 --- .../Components/TabPanels/Account/PasswordPanel.jsx | 9 ++++----- .../src/Components/TabPanels/Account/ProfilePanel.jsx | 11 +++++------ Client/src/Components/TabPanels/Account/TeamPanel.jsx | 5 ++--- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Client/src/Components/TabPanels/Account/PasswordPanel.jsx b/Client/src/Components/TabPanels/Account/PasswordPanel.jsx index 0ea48138e..32ab131b8 100644 --- a/Client/src/Components/TabPanels/Account/PasswordPanel.jsx +++ b/Client/src/Components/TabPanels/Account/PasswordPanel.jsx @@ -21,9 +21,8 @@ const PasswordPanel = () => { const theme = useTheme(); const dispatch = useDispatch(); - // Define the constant for consistent gap - const SPACING_GAP = theme.spacing(12); // EDITED: Added a constant for gap size. + const SPACING_GAP = theme.spacing(12); //redux state const { authToken, isLoading } = useSelector((state) => state.auth); @@ -131,7 +130,7 @@ const PasswordPanel = () => { direction="row" justifyContent={"flex-start"} alignItems={"center"} - gap={SPACING_GAP} // Replaced gap with SPACING_GAP constant + gap={SPACING_GAP} flexWrap={"wrap"} > { { { const theme = useTheme(); const dispatch = useDispatch(); - // Define the constant for consistent gap const SPACING_GAP = theme.spacing(12); //redux state @@ -226,9 +225,9 @@ const ProfilePanel = () => { className="edit-profile-form" noValidate spellCheck="false" - gap={SPACING_GAP} // Applied SPACING_GAP for consistent spacing + gap={SPACING_GAP} > - + First name @@ -243,7 +242,7 @@ const ProfilePanel = () => { flex={1} /> - + Last name @@ -258,7 +257,7 @@ const ProfilePanel = () => { flex={1} /> - + Email { flex={1} /> - + Your photo { const theme = useTheme(); - // Define the constant for consistent gap const SPACING_GAP = theme.spacing(12); const { authToken, user } = useSelector((state) => state.auth); @@ -278,7 +277,7 @@ const TeamPanel = () => { component="form" noValidate spellCheck="false" - gap={SPACING_GAP} // Added a constant Spacing gap + gap={SPACING_GAP} > Team members { theme={theme} >