Skip to content

Commit 2dcde96

Browse files
committed
chore: convert styles to tailwind
1 parent f650519 commit 2dcde96

File tree

1 file changed

+2
-43
lines changed

1 file changed

+2
-43
lines changed

site/src/pages/OrganizationSettingsPage/OrganizationSettingsPageView.tsx

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ export const OrganizationSettingsPageView: FC<
126126
</HorizontalForm>
127127

128128
{!organization.is_default && (
129-
<HorizontalContainer css={{ marginTop: 48 }}>
129+
<HorizontalContainer className="mt-12">
130130
<HorizontalSection
131131
title="Settings"
132132
description="Change or delete your organization."
133133
>
134-
<div css={styles.dangerSettings}>
134+
<div className="flex bg-surface-primary items-center justify-between border border-solid border-surface-quaternary rounded-[8px] p-3 pl-[18px] gap-2 flex-grow">
135135
<span>Deleting an organization is irreversible.</span>
136136
<Button variant="destructive" onClick={() => setIsDeleting(true)}>
137137
Delete this organization
@@ -152,44 +152,3 @@ export const OrganizationSettingsPageView: FC<
152152
);
153153
};
154154

155-
const styles = {
156-
dangerSettings: (theme) => ({
157-
display: "flex",
158-
backgroundColor: theme.roles.danger.background,
159-
alignItems: "center",
160-
justifyContent: "space-between",
161-
border: `1px solid ${theme.roles.danger.outline}`,
162-
borderRadius: 8,
163-
padding: 12,
164-
paddingLeft: 18,
165-
gap: 8,
166-
lineHeight: "18px",
167-
flexGrow: 1,
168-
169-
"& .option": {
170-
color: theme.roles.danger.fill.solid,
171-
"&.Mui-checked": {
172-
color: theme.roles.danger.fill.solid,
173-
},
174-
},
175-
176-
"& .info": {
177-
fontSize: 14,
178-
fontWeight: 600,
179-
color: theme.roles.danger.text,
180-
},
181-
}),
182-
dangerButton: (theme) => ({
183-
borderColor: theme.roles.danger.outline,
184-
color: theme.roles.danger.text,
185-
186-
"&.MuiLoadingButton-loading": {
187-
color: theme.roles.danger.disabled.text,
188-
},
189-
190-
"&:hover:not(:disabled)": {
191-
backgroundColor: theme.roles.danger.hover.background,
192-
borderColor: theme.roles.danger.hover.fill.outline,
193-
},
194-
}),
195-
} satisfies Record<string, Interpolation<Theme>>;

0 commit comments

Comments
 (0)