Refactored team tab
This commit is contained in:
1 parent
9a1934a77a
commit
91df54adc4
3 files changed
+9
-39
No files matched your search
@@ -302,7 +302,6 @@ const ProfilePanel = () => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
<Divider
|
<Divider
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className="short-divider"
|
|
||||||
width="0"
|
width="0"
|
||||||
sx={{ marginY: theme.spacing(1) }}
|
sx={{ marginY: theme.spacing(1) }}
|
||||||
/>
|
/>
|
||||||
@@ -324,7 +323,7 @@ const ProfilePanel = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Divider aria-hidden="true" />
|
<Divider aria-hidden="true" sx={{ marginY: theme.spacing(6) }} />
|
||||||
<Stack
|
<Stack
|
||||||
component="form"
|
component="form"
|
||||||
noValidate
|
noValidate
|
||||||
|
|||||||
@@ -131,9 +131,6 @@ const TeamPanel = () => {
|
|||||||
};
|
};
|
||||||
const handleRename = () => {};
|
const handleRename = () => {};
|
||||||
|
|
||||||
//TODO - implement save team function
|
|
||||||
const handleSaveTeam = () => {};
|
|
||||||
|
|
||||||
// INVITE MEMBER
|
// INVITE MEMBER
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
|
|
||||||
@@ -200,12 +197,11 @@ const TeamPanel = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<TabPanel value="team">
|
<TabPanel value="team">
|
||||||
<form className="edit-organization-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
|
||||||
className="row-stack"
|
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
@@ -245,21 +241,13 @@ const TeamPanel = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</form>
|
</Stack>
|
||||||
<Divider
|
<Divider aria-hidden="true" sx={{ marginY: theme.spacing(4) }} />
|
||||||
aria-hidden="true"
|
<Stack
|
||||||
className="short-divider"
|
component="form"
|
||||||
sx={{ marginY: theme.spacing(4) }}
|
|
||||||
/>
|
|
||||||
<form
|
|
||||||
className="edit-team-form"
|
|
||||||
noValidate
|
noValidate
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
style={{
|
gap={theme.gap.large}
|
||||||
display: "flex",
|
|
||||||
flexDirection: "column",
|
|
||||||
gap: theme.gap.large,
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Typography component="h1">Team members</Typography>
|
<Typography component="h1">Team members</Typography>
|
||||||
<Stack direction="row" justifyContent="space-between">
|
<Stack direction="row" justifyContent="space-between">
|
||||||
@@ -307,22 +295,7 @@ const TeamPanel = () => {
|
|||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<BasicTable data={tableData} paginated={false} reversed={true} />
|
<BasicTable data={tableData} paginated={false} reversed={true} />
|
||||||
<Stack direction="row" justifyContent="flex-end">
|
</Stack>
|
||||||
<Box width="fit-content">
|
|
||||||
<ButtonSpinner
|
|
||||||
level="primary"
|
|
||||||
label="Save"
|
|
||||||
onClick={handleSaveTeam}
|
|
||||||
isLoading={false}
|
|
||||||
loadingText="Saving..."
|
|
||||||
disabled={true}
|
|
||||||
sx={{
|
|
||||||
paddingX: "40px",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
</Stack>
|
|
||||||
</form>
|
|
||||||
<Modal
|
<Modal
|
||||||
aria-labelledby="modal-invite-member"
|
aria-labelledby="modal-invite-member"
|
||||||
aria-describedby="invite-member-to-team"
|
aria-describedby="invite-member-to-team"
|
||||||
|
|||||||
@@ -19,9 +19,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
.account .MuiDivider-root:not(.short-divider) {
|
|
||||||
margin: 50px 0;
|
|
||||||
}
|
|
||||||
.account .MuiDivider-root,
|
.account .MuiDivider-root,
|
||||||
.account .MuiButtonGroup-root button {
|
.account .MuiButtonGroup-root button {
|
||||||
border-color: var(--env-var-color-16);
|
border-color: var(--env-var-color-16);
|
||||||
|
|||||||
Reference in new issue
Block a user