@@ -126,14 +126,18 @@ export const OrganizationSettingsPageView: FC<
126
126
</ HorizontalForm >
127
127
128
128
{ ! organization . is_default && (
129
- < HorizontalContainer css = { { marginTop : 48 } } >
129
+ < HorizontalContainer className = "mt-12" >
130
130
< HorizontalSection
131
131
title = "Settings"
132
132
description = "Change or delete your organization."
133
133
>
134
- < div css = { styles . dangerSettings } >
134
+ < div className = "flex bg-surface-orange items-center justify-between border border-solid border-orange-600 rounded-md p-3 pl-4 gap-2 flex-grow" >
135
135
< span > Deleting an organization is irreversible.</ span >
136
- < Button variant = "destructive" onClick = { ( ) => setIsDeleting ( true ) } >
136
+ < Button
137
+ variant = "destructive"
138
+ onClick = { ( ) => setIsDeleting ( true ) }
139
+ className = "min-w-fit"
140
+ >
137
141
Delete this organization
138
142
</ Button >
139
143
</ div >
@@ -151,45 +155,3 @@ export const OrganizationSettingsPageView: FC<
151
155
</ div >
152
156
) ;
153
157
} ;
154
-
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