Skip to content

Commit

Permalink
Comments were removed and spacing was added to all the stacks issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Mudassir committed Dec 6, 2024
1 parent ecd1282 commit 9e9d561
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
9 changes: 4 additions & 5 deletions Client/src/Components/TabPanels/Account/PasswordPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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"}
>
<Typography
Expand All @@ -156,7 +155,7 @@ const PasswordPanel = () => {
<Stack
direction="row"
alignItems={"center"}
gap={SPACING_GAP} //Replaced gap with SPACING_GAP constant
gap={SPACING_GAP}
flexWrap={"wrap"}
>
<Typography
Expand All @@ -182,7 +181,7 @@ const PasswordPanel = () => {
<Stack
direction="row"
alignItems={"center"}
gap={SPACING_GAP} //Replaced gap with SPACING_GAP constant
gap={SPACING_GAP}
flexWrap={"wrap"}
>
<Typography
Expand Down
11 changes: 5 additions & 6 deletions Client/src/Components/TabPanels/Account/ProfilePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const ProfilePanel = () => {
const theme = useTheme();
const dispatch = useDispatch();

// Define the constant for consistent gap
const SPACING_GAP = theme.spacing(12);

//redux state
Expand Down Expand Up @@ -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}
>
<Stack direction="row">
<Stack direction="row" gap={SPACING_GAP}>
<Box flex={0.9}>
<Typography component="h1">First name</Typography>
</Box>
Expand All @@ -243,7 +242,7 @@ const ProfilePanel = () => {
flex={1}
/>
</Stack>
<Stack direction="row">
<Stack direction="row" gap={SPACING_GAP}>
<Box flex={0.9}>
<Typography component="h1">Last name</Typography>
</Box>
Expand All @@ -258,7 +257,7 @@ const ProfilePanel = () => {
flex={1}
/>
</Stack>
<Stack direction="row">
<Stack direction="row" gap={SPACING_GAP}>
<Stack flex={0.9}>
<Typography component="h1">Email</Typography>
<Typography
Expand All @@ -278,7 +277,7 @@ const ProfilePanel = () => {
flex={1}
/>
</Stack>
<Stack direction="row">
<Stack direction="row" gap={SPACING_GAP}>
<Stack flex={0.9}>
<Typography component="h1">Your photo</Typography>
<Typography
Expand Down
5 changes: 2 additions & 3 deletions Client/src/Components/TabPanels/Account/TeamPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const TeamPanel = () => {

const theme = useTheme();

// Define the constant for consistent gap
const SPACING_GAP = theme.spacing(12);

const { authToken, user } = useSelector((state) => state.auth);
Expand Down Expand Up @@ -278,7 +277,7 @@ const TeamPanel = () => {
component="form"
noValidate
spellCheck="false"
gap={SPACING_GAP} // Added a constant Spacing gap
gap={SPACING_GAP}
>
<Typography component="h1">Team members</Typography>
<Stack
Expand Down Expand Up @@ -342,7 +341,7 @@ const TeamPanel = () => {
theme={theme}
>
<TextInput
marginBottom={SPACING_GAP} // Applied SPACING_GAP for consistent spacing
marginBottom={SPACING_GAP}
type="email"
id="input-team-member"
placeholder="Email"
Expand Down

0 comments on commit 9e9d561

Please sign in to comment.