Skip to content

Commit b8af7e9

Browse files
committed
🧹
1 parent d2b5602 commit b8af7e9

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

site/src/pages/CreateTokenPage/CreateTokenPage.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC, useState } from "react";
1+
import { type FC, useState } from "react";
22
import { Helmet } from "react-helmet-async";
33
import { pageTitle } from "utils/page";
44
import { FullPageHorizontalForm } from "components/FullPageForm/FullPageHorizontalForm";
@@ -12,7 +12,6 @@ import { CreateTokenForm } from "./CreateTokenForm";
1212
import { NANO_HOUR, CreateTokenData } from "./utils";
1313
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog";
1414
import { CodeExample } from "components/CodeExample/CodeExample";
15-
import { makeStyles } from "@mui/styles";
1615
import { ErrorAlert } from "components/Alert/ErrorAlert";
1716

1817
const initialValues: CreateTokenData = {
@@ -21,7 +20,6 @@ const initialValues: CreateTokenData = {
2120
};
2221

2322
export const CreateTokenPage: FC = () => {
24-
const styles = useStyles();
2523
const navigate = useNavigate();
2624

2725
const {
@@ -72,7 +70,15 @@ export const CreateTokenPage: FC = () => {
7270
const tokenDescription = (
7371
<>
7472
<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+
/>
7682
</>
7783
);
7884

@@ -114,13 +120,4 @@ export const CreateTokenPage: FC = () => {
114120
);
115121
};
116122

117-
const useStyles = makeStyles((theme) => ({
118-
codeExample: {
119-
minHeight: "auto",
120-
userSelect: "all",
121-
width: "100%",
122-
marginTop: theme.spacing(3),
123-
},
124-
}));
125-
126123
export default CreateTokenPage;

0 commit comments

Comments
 (0)