@@ -12,13 +12,11 @@ import { getFormHelpers } from "utils/formUtils";
12
12
import Button from "@mui/material/Button" ;
13
13
import FormControlLabel from "@mui/material/FormControlLabel" ;
14
14
import { BlockPicker } from "react-color" ;
15
- import makeStyles from "@mui/styles/makeStyles" ;
16
15
import Switch from "@mui/material/Switch" ;
17
16
import TextField from "@mui/material/TextField" ;
18
- import { UpdateAppearanceConfig } from "api/typesGenerated" ;
17
+ import type { UpdateAppearanceConfig } from "api/typesGenerated" ;
19
18
import { Stack } from "components/Stack/Stack" ;
20
19
import { useFormik } from "formik" ;
21
- import { useTheme } from "@mui/styles" ;
22
20
import Link from "@mui/material/Link" ;
23
21
import { colors } from "theme/colors" ;
24
22
import { hslToHex } from "utils/colors" ;
@@ -39,9 +37,6 @@ export const AppearanceSettingsPageView = ({
39
37
isEntitled,
40
38
onSaveAppearance,
41
39
} : AppearanceSettingsPageViewProps ) : JSX . Element => {
42
- const styles = useStyles ( ) ;
43
- const theme = useTheme ( ) ;
44
-
45
40
const applicationNameForm = useFormik < {
46
41
application_name : string ;
47
42
} > ( {
@@ -133,7 +128,17 @@ export const AppearanceSettingsPageView = ({
133
128
disabled = { ! isEntitled }
134
129
InputProps = { {
135
130
endAdornment : (
136
- < InputAdornment position = "end" className = { styles . logoAdornment } >
131
+ < InputAdornment
132
+ position = "end"
133
+ css = { ( theme ) => ( {
134
+ width : theme . spacing ( 3 ) ,
135
+ height : theme . spacing ( 3 ) ,
136
+
137
+ "& img" : {
138
+ maxWidth : "100%" ,
139
+ } ,
140
+ } ) }
141
+ >
137
142
< img
138
143
alt = ""
139
144
src = { logoForm . values . logo_url }
@@ -241,7 +246,7 @@ export const AppearanceSettingsPageView = ({
241
246
} }
242
247
triangle = "hide"
243
248
colors = { [ "#004852" , "#D65D0F" , "#4CD473" , "#D94A5D" , "#5A00CF" ] }
244
- styles = { {
249
+ css = { ( theme ) => ( {
245
250
default : {
246
251
input : {
247
252
color : "white" ,
@@ -255,7 +260,7 @@ export const AppearanceSettingsPageView = ({
255
260
backgroundColor : "black" ,
256
261
} ,
257
262
} ,
258
- } }
263
+ } ) }
259
264
/>
260
265
</ Stack >
261
266
</ Stack >
@@ -264,17 +269,3 @@ export const AppearanceSettingsPageView = ({
264
269
</ >
265
270
) ;
266
271
} ;
267
-
268
- const useStyles = makeStyles ( ( theme ) => ( {
269
- form : {
270
- maxWidth : "500px" ,
271
- } ,
272
- logoAdornment : {
273
- width : theme . spacing ( 3 ) ,
274
- height : theme . spacing ( 3 ) ,
275
-
276
- "& img" : {
277
- maxWidth : "100%" ,
278
- } ,
279
- } ,
280
- } ) ) ;
0 commit comments