expose margin, integrate into TeamPanel
This commit is contained in:
1 parent
efd0d681ba
commit
f81b5957e7
2 files changed
+17
-2
No files matched your search
@@ -78,6 +78,10 @@ const TextInput = forwardRef(
|
|||||||
label = null,
|
label = null,
|
||||||
maxWidth = "100%",
|
maxWidth = "100%",
|
||||||
flex,
|
flex,
|
||||||
|
marginTop,
|
||||||
|
marginRight,
|
||||||
|
marginBottom,
|
||||||
|
marginLeft,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
hidden = false,
|
hidden = false,
|
||||||
},
|
},
|
||||||
@@ -89,6 +93,10 @@ const TextInput = forwardRef(
|
|||||||
<Stack
|
<Stack
|
||||||
flex={flex}
|
flex={flex}
|
||||||
display={hidden ? "none" : ""}
|
display={hidden ? "none" : ""}
|
||||||
|
marginTop={marginTop}
|
||||||
|
marginRight={marginRight}
|
||||||
|
marginBottom={marginBottom}
|
||||||
|
marginLeft={marginLeft}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
component="h3"
|
component="h3"
|
||||||
@@ -147,6 +155,10 @@ TextInput.propTypes = {
|
|||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
maxWidth: PropTypes.string,
|
maxWidth: PropTypes.string,
|
||||||
flex: PropTypes.number,
|
flex: PropTypes.number,
|
||||||
|
marginTop: PropTypes.string,
|
||||||
|
marginRight: PropTypes.string,
|
||||||
|
marginBottom: PropTypes.string,
|
||||||
|
marginLeft: PropTypes.string,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
hidden: PropTypes.bool,
|
hidden: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { useTheme } from "@emotion/react";
|
|||||||
import TabPanel from "@mui/lab/TabPanel";
|
import TabPanel from "@mui/lab/TabPanel";
|
||||||
import { Button, ButtonGroup, Stack, Typography } from "@mui/material";
|
import { Button, ButtonGroup, Stack, Typography } from "@mui/material";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import TextInput from "../../Inputs/TextInput";
|
||||||
import Field from "../../Inputs/Field";
|
import Field from "../../Inputs/Field";
|
||||||
import { credentials } from "../../../Validation/validation";
|
import { credentials } from "../../../Validation/validation";
|
||||||
import { networkService } from "../../../main";
|
import { networkService } from "../../../main";
|
||||||
@@ -338,13 +339,15 @@ const TeamPanel = () => {
|
|||||||
onClose={closeInviteModal}
|
onClose={closeInviteModal}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
>
|
>
|
||||||
<Field
|
<TextInput
|
||||||
|
marginBottom={theme.spacing(12)}
|
||||||
type="email"
|
type="email"
|
||||||
id="input-team-member"
|
id="input-team-member"
|
||||||
placeholder="Email"
|
placeholder="Email"
|
||||||
value={toInvite.email}
|
value={toInvite.email}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.email}
|
error={errors.email ? true : false}
|
||||||
|
helperText={errors.email}
|
||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
id="team-member-role"
|
id="team-member-role"
|
||||||
|
|||||||
Reference in new issue
Block a user