Added a gap between label and inputs #1270
This commit is contained in:
1 parent
4c051ff0ac
commit
ecd1282c4d
3 files changed
+17
-7
No files matched your search
@@ -21,6 +21,10 @@ 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.
|
||||||
|
|
||||||
|
|
||||||
//redux state
|
//redux state
|
||||||
const { authToken, isLoading } = useSelector((state) => state.auth);
|
const { authToken, isLoading } = useSelector((state) => state.auth);
|
||||||
|
|
||||||
@@ -127,7 +131,7 @@ const PasswordPanel = () => {
|
|||||||
direction="row"
|
direction="row"
|
||||||
justifyContent={"flex-start"}
|
justifyContent={"flex-start"}
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
gap={theme.spacing(8)}
|
gap={SPACING_GAP} // Replaced gap with SPACING_GAP constant
|
||||||
flexWrap={"wrap"}
|
flexWrap={"wrap"}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -152,7 +156,7 @@ const PasswordPanel = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
gap={theme.spacing(8)}
|
gap={SPACING_GAP} //Replaced gap with SPACING_GAP constant
|
||||||
flexWrap={"wrap"}
|
flexWrap={"wrap"}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -178,7 +182,7 @@ const PasswordPanel = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
gap={theme.spacing(8)}
|
gap={SPACING_GAP} //Replaced gap with SPACING_GAP constant
|
||||||
flexWrap={"wrap"}
|
flexWrap={"wrap"}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ import Dialog from "../../Dialog";
|
|||||||
const ProfilePanel = () => {
|
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);
|
||||||
|
|
||||||
//redux state
|
//redux state
|
||||||
const { user, authToken, isLoading } = useSelector((state) => state.auth);
|
const { user, authToken, isLoading } = useSelector((state) => state.auth);
|
||||||
@@ -223,7 +226,7 @@ const ProfilePanel = () => {
|
|||||||
className="edit-profile-form"
|
className="edit-profile-form"
|
||||||
noValidate
|
noValidate
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
gap={theme.spacing(20)}
|
gap={SPACING_GAP} // Applied SPACING_GAP for consistent spacing
|
||||||
>
|
>
|
||||||
<Stack direction="row">
|
<Stack direction="row">
|
||||||
<Box flex={0.9}>
|
<Box flex={0.9}>
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ const TeamPanel = () => {
|
|||||||
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
|
// Define the constant for consistent gap
|
||||||
|
const SPACING_GAP = theme.spacing(12);
|
||||||
|
|
||||||
const { authToken, user } = useSelector((state) => state.auth);
|
const { authToken, user } = useSelector((state) => state.auth);
|
||||||
//TODO
|
//TODO
|
||||||
// const [orgStates, setOrgStates] = useState({
|
// const [orgStates, setOrgStates] = useState({
|
||||||
@@ -228,7 +231,7 @@ const TeamPanel = () => {
|
|||||||
{/* <Stack component="form">
|
{/* <Stack component="form">
|
||||||
<Box sx={{ alignSelf: "flex-start" }}>
|
<Box sx={{ alignSelf: "flex-start" }}>
|
||||||
<Typography component="h1">Organization name</Typography>
|
<Typography component="h1">Organization name</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
@@ -275,7 +278,7 @@ const TeamPanel = () => {
|
|||||||
component="form"
|
component="form"
|
||||||
noValidate
|
noValidate
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
gap={theme.spacing(12)}
|
gap={SPACING_GAP} // Added a constant Spacing gap
|
||||||
>
|
>
|
||||||
<Typography component="h1">Team members</Typography>
|
<Typography component="h1">Team members</Typography>
|
||||||
<Stack
|
<Stack
|
||||||
@@ -339,7 +342,7 @@ const TeamPanel = () => {
|
|||||||
theme={theme}
|
theme={theme}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
marginBottom={theme.spacing(12)}
|
marginBottom={SPACING_GAP} // Applied SPACING_GAP for consistent spacing
|
||||||
type="email"
|
type="email"
|
||||||
id="input-team-member"
|
id="input-team-member"
|
||||||
placeholder="Email"
|
placeholder="Email"
|
||||||
|
|||||||
Reference in new issue
Block a user