1
- import { FC , useState } from "react" ;
1
+ import { type FC , useState } from "react" ;
2
2
import { Helmet } from "react-helmet-async" ;
3
3
import { pageTitle } from "utils/page" ;
4
4
import { FullPageHorizontalForm } from "components/FullPageForm/FullPageHorizontalForm" ;
@@ -12,7 +12,6 @@ import { CreateTokenForm } from "./CreateTokenForm";
12
12
import { NANO_HOUR , CreateTokenData } from "./utils" ;
13
13
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog" ;
14
14
import { CodeExample } from "components/CodeExample/CodeExample" ;
15
- import { makeStyles } from "@mui/styles" ;
16
15
import { ErrorAlert } from "components/Alert/ErrorAlert" ;
17
16
18
17
const initialValues : CreateTokenData = {
@@ -21,7 +20,6 @@ const initialValues: CreateTokenData = {
21
20
} ;
22
21
23
22
export const CreateTokenPage : FC = ( ) => {
24
- const styles = useStyles ( ) ;
25
23
const navigate = useNavigate ( ) ;
26
24
27
25
const {
@@ -72,7 +70,15 @@ export const CreateTokenPage: FC = () => {
72
70
const tokenDescription = (
73
71
< >
74
72
< p > Make sure you copy the below token before proceeding:</ p >
75
- < CodeExample code = { newToken ?. key ?? "" } className = { styles . codeExample } />
73
+ < CodeExample
74
+ code = { newToken ?. key ?? "" }
75
+ css = { ( theme ) => ( {
76
+ minHeight : "auto" ,
77
+ userSelect : "all" ,
78
+ width : "100%" ,
79
+ marginTop : theme . spacing ( 3 ) ,
80
+ } ) }
81
+ />
76
82
</ >
77
83
) ;
78
84
@@ -114,13 +120,4 @@ export const CreateTokenPage: FC = () => {
114
120
) ;
115
121
} ;
116
122
117
- const useStyles = makeStyles ( ( theme ) => ( {
118
- codeExample : {
119
- minHeight : "auto" ,
120
- userSelect : "all" ,
121
- width : "100%" ,
122
- marginTop : theme . spacing ( 3 ) ,
123
- } ,
124
- } ) ) ;
125
-
126
123
export default CreateTokenPage ;
0 commit comments