Comments were removed and spacing was added to all the stacks issue #1270
This commit is contained in:
1 parent
ecd1282c4d
commit
9e9d561ea0
3 files changed
+11
-14
No files matched your search
@@ -21,9 +21,8 @@ const PasswordPanel = () => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const dispatch = useDispatch();
|
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
|
//redux state
|
||||||
const { authToken, isLoading } = useSelector((state) => state.auth);
|
const { authToken, isLoading } = useSelector((state) => state.auth);
|
||||||
@@ -131,7 +130,7 @@ const PasswordPanel = () => {
|
|||||||
direction="row"
|
direction="row"
|
||||||
justifyContent={"flex-start"}
|
justifyContent={"flex-start"}
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
gap={SPACING_GAP} // Replaced gap with SPACING_GAP constant
|
gap={SPACING_GAP}
|
||||||
flexWrap={"wrap"}
|
flexWrap={"wrap"}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -156,7 +155,7 @@ const PasswordPanel = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
gap={SPACING_GAP} //Replaced gap with SPACING_GAP constant
|
gap={SPACING_GAP}
|
||||||
flexWrap={"wrap"}
|
flexWrap={"wrap"}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -182,7 +181,7 @@ const PasswordPanel = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
gap={SPACING_GAP} //Replaced gap with SPACING_GAP constant
|
gap={SPACING_GAP}
|
||||||
flexWrap={"wrap"}
|
flexWrap={"wrap"}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ const ProfilePanel = () => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
// Define the constant for consistent gap
|
|
||||||
const SPACING_GAP = theme.spacing(12);
|
const SPACING_GAP = theme.spacing(12);
|
||||||
|
|
||||||
//redux state
|
//redux state
|
||||||
@@ -226,9 +225,9 @@ const ProfilePanel = () => {
|
|||||||
className="edit-profile-form"
|
className="edit-profile-form"
|
||||||
noValidate
|
noValidate
|
||||||
spellCheck="false"
|
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}>
|
<Box flex={0.9}>
|
||||||
<Typography component="h1">First name</Typography>
|
<Typography component="h1">First name</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
@@ -243,7 +242,7 @@ const ProfilePanel = () => {
|
|||||||
flex={1}
|
flex={1}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack direction="row">
|
<Stack direction="row" gap={SPACING_GAP}>
|
||||||
<Box flex={0.9}>
|
<Box flex={0.9}>
|
||||||
<Typography component="h1">Last name</Typography>
|
<Typography component="h1">Last name</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
@@ -258,7 +257,7 @@ const ProfilePanel = () => {
|
|||||||
flex={1}
|
flex={1}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack direction="row">
|
<Stack direction="row" gap={SPACING_GAP}>
|
||||||
<Stack flex={0.9}>
|
<Stack flex={0.9}>
|
||||||
<Typography component="h1">Email</Typography>
|
<Typography component="h1">Email</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -278,7 +277,7 @@ const ProfilePanel = () => {
|
|||||||
flex={1}
|
flex={1}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack direction="row">
|
<Stack direction="row" gap={SPACING_GAP}>
|
||||||
<Stack flex={0.9}>
|
<Stack flex={0.9}>
|
||||||
<Typography component="h1">Your photo</Typography>
|
<Typography component="h1">Your photo</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ const TeamPanel = () => {
|
|||||||
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
// Define the constant for consistent gap
|
|
||||||
const SPACING_GAP = theme.spacing(12);
|
const SPACING_GAP = theme.spacing(12);
|
||||||
|
|
||||||
const { authToken, user } = useSelector((state) => state.auth);
|
const { authToken, user } = useSelector((state) => state.auth);
|
||||||
@@ -278,7 +277,7 @@ const TeamPanel = () => {
|
|||||||
component="form"
|
component="form"
|
||||||
noValidate
|
noValidate
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
gap={SPACING_GAP} // Added a constant Spacing gap
|
gap={SPACING_GAP}
|
||||||
>
|
>
|
||||||
<Typography component="h1">Team members</Typography>
|
<Typography component="h1">Team members</Typography>
|
||||||
<Stack
|
<Stack
|
||||||
@@ -342,7 +341,7 @@ const TeamPanel = () => {
|
|||||||
theme={theme}
|
theme={theme}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
marginBottom={SPACING_GAP} // Applied SPACING_GAP for consistent spacing
|
marginBottom={SPACING_GAP}
|
||||||
type="email"
|
type="email"
|
||||||
id="input-team-member"
|
id="input-team-member"
|
||||||
placeholder="Email"
|
placeholder="Email"
|
||||||
|
|||||||
Reference in new issue
Block a user