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} >