Skip to content

feat: unify organization and deployment management settings #13602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 1, 2024
Prev Previous commit
Next Next commit
🧹
  • Loading branch information
aslilac committed Jun 20, 2024
commit 32cbc68ddf44ea6dfec92dbb1daf7c4ebc380ff7
2 changes: 1 addition & 1 deletion site/src/pages/ManagementSettingsPage/Horizontal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const styles = {

[theme.breakpoints.down("md")]: {
width: "100%",
position: "initial" as const,
position: "initial",
},
}),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,41 +118,11 @@ export const OrganizationSettingsPageView: FC<
title="Settings"
description="Change or delete your organization."
>
<div
css={(theme) => ({
display: "flex",
backgroundColor: theme.roles.danger.background,
alignItems: "center",
justifyContent: "space-between",
border: `1px solid ${theme.roles.danger.outline}`,
borderRadius: 8,
padding: 12,
paddingLeft: 18,
gap: 8,
lineHeight: "18px",
flexGrow: 1,

"& .option": {
color: theme.roles.danger.fill.solid,
"&.Mui-checked": {
color: theme.roles.danger.fill.solid,
},
},

"& .info": {
fontSize: 14,
fontWeight: 600,
color: theme.roles.danger.text,
},
})}
>
<div css={styles.dangerSettings}>
<span>Deleting an organization is irreversible.</span>
<Button
css={styles.dangerButton}
// variant="contained"
// varia
color="warning"
// variant="contained"
onClick={() => setIsDeleting(true)}
>
Delete this organization
Expand All @@ -174,8 +144,33 @@ export const OrganizationSettingsPageView: FC<
};

const styles = {
dangerSettings: (theme) => ({
display: "flex",
backgroundColor: theme.roles.danger.background,
alignItems: "center",
justifyContent: "space-between",
border: `1px solid ${theme.roles.danger.outline}`,
borderRadius: 8,
padding: 12,
paddingLeft: 18,
gap: 8,
lineHeight: "18px",
flexGrow: 1,

"& .option": {
color: theme.roles.danger.fill.solid,
"&.Mui-checked": {
color: theme.roles.danger.fill.solid,
},
},

"& .info": {
fontSize: 14,
fontWeight: 600,
color: theme.roles.danger.text,
},
}),
dangerButton: (theme) => ({
// backgroundColor: theme.roles.danger.fill.solid,
borderColor: theme.roles.danger.outline,
color: theme.roles.danger.text,

Expand Down
Loading