Skip to content

Commit 32cbc68

Browse files
committed
🧹
1 parent 73773bf commit 32cbc68

File tree

2 files changed

+28
-33
lines changed

2 files changed

+28
-33
lines changed

site/src/pages/ManagementSettingsPage/Horizontal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const styles = {
6363

6464
[theme.breakpoints.down("md")]: {
6565
width: "100%",
66-
position: "initial" as const,
66+
position: "initial",
6767
},
6868
}),
6969

site/src/pages/ManagementSettingsPage/OrganizationSettingsPageView.tsx

+27-32
Original file line numberDiff line numberDiff line change
@@ -118,41 +118,11 @@ export const OrganizationSettingsPageView: FC<
118118
title="Settings"
119119
description="Change or delete your organization."
120120
>
121-
<div
122-
css={(theme) => ({
123-
display: "flex",
124-
backgroundColor: theme.roles.danger.background,
125-
alignItems: "center",
126-
justifyContent: "space-between",
127-
border: `1px solid ${theme.roles.danger.outline}`,
128-
borderRadius: 8,
129-
padding: 12,
130-
paddingLeft: 18,
131-
gap: 8,
132-
lineHeight: "18px",
133-
flexGrow: 1,
134-
135-
"& .option": {
136-
color: theme.roles.danger.fill.solid,
137-
"&.Mui-checked": {
138-
color: theme.roles.danger.fill.solid,
139-
},
140-
},
141-
142-
"& .info": {
143-
fontSize: 14,
144-
fontWeight: 600,
145-
color: theme.roles.danger.text,
146-
},
147-
})}
148-
>
121+
<div css={styles.dangerSettings}>
149122
<span>Deleting an organization is irreversible.</span>
150123
<Button
151124
css={styles.dangerButton}
152-
// variant="contained"
153-
// varia
154125
color="warning"
155-
// variant="contained"
156126
onClick={() => setIsDeleting(true)}
157127
>
158128
Delete this organization
@@ -174,8 +144,33 @@ export const OrganizationSettingsPageView: FC<
174144
};
175145

176146
const styles = {
147+
dangerSettings: (theme) => ({
148+
display: "flex",
149+
backgroundColor: theme.roles.danger.background,
150+
alignItems: "center",
151+
justifyContent: "space-between",
152+
border: `1px solid ${theme.roles.danger.outline}`,
153+
borderRadius: 8,
154+
padding: 12,
155+
paddingLeft: 18,
156+
gap: 8,
157+
lineHeight: "18px",
158+
flexGrow: 1,
159+
160+
"& .option": {
161+
color: theme.roles.danger.fill.solid,
162+
"&.Mui-checked": {
163+
color: theme.roles.danger.fill.solid,
164+
},
165+
},
166+
167+
"& .info": {
168+
fontSize: 14,
169+
fontWeight: 600,
170+
color: theme.roles.danger.text,
171+
},
172+
}),
177173
dangerButton: (theme) => ({
178-
// backgroundColor: theme.roles.danger.fill.solid,
179174
borderColor: theme.roles.danger.outline,
180175
color: theme.roles.danger.text,
181176

0 commit comments

Comments
 (0)