Skip to content

Commit f132aee

Browse files
committed
emotion: LicensesSettingsPageView
1 parent 55ecf93 commit f132aee

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

site/src/pages/DeploySettingsPage/LicensesSettingsPage/LicensesSettingsPageView.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import { type Interpolation, type Theme } from "@emotion/react";
12
import Button from "@mui/material/Button";
2-
import { makeStyles, useTheme } from "@mui/styles";
3+
import { useTheme } from "@mui/styles";
34
import Skeleton from "@mui/material/Skeleton";
45
import AddIcon from "@mui/icons-material/AddOutlined";
56
import RefreshIcon from "@mui/icons-material/Refresh";
6-
import { GetLicensesResponse } from "api/api";
7+
import type { GetLicensesResponse } from "api/api";
78
import { Header } from "components/DeploySettingsLayout/Header";
89
import { LicenseCard } from "./LicenseCard";
910
import { Stack } from "components/Stack/Stack";
10-
import { FC } from "react";
11+
import { type FC } from "react";
1112
import Confetti from "react-confetti";
1213
import { Link } from "react-router-dom";
1314
import useWindowSize from "react-use/lib/useWindowSize";
@@ -38,10 +39,8 @@ const LicensesSettingsPageView: FC<Props> = ({
3839
removeLicense,
3940
refreshEntitlements,
4041
}) => {
41-
const styles = useStyles();
42-
const { width, height } = useWindowSize();
43-
4442
const theme = useTheme();
43+
const { width, height } = useWindowSize();
4544

4645
return (
4746
<>
@@ -130,27 +129,27 @@ const LicensesSettingsPageView: FC<Props> = ({
130129
);
131130
};
132131

133-
const useStyles = makeStyles((theme) => ({
134-
title: {
132+
const styles = {
133+
title: (theme) => ({
135134
fontSize: theme.spacing(2),
136-
},
135+
}),
137136

138-
root: {
137+
root: (theme) => ({
139138
minHeight: theme.spacing(30),
140139
display: "flex",
141140
alignItems: "center",
142141
justifyContent: "center",
143142
borderRadius: theme.shape.borderRadius,
144143
border: `1px solid ${theme.palette.divider}`,
145144
padding: theme.spacing(6),
146-
},
145+
}),
147146

148-
description: {
147+
description: (theme) => ({
149148
color: theme.palette.text.secondary,
150149
textAlign: "center",
151150
maxWidth: theme.spacing(58),
152151
marginTop: theme.spacing(1),
153-
},
154-
}));
152+
}),
153+
} satisfies Record<string, Interpolation<Theme>>;
155154

156155
export default LicensesSettingsPageView;

0 commit comments

Comments
 (0)