Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
emotion: LicensesSettingsPageView
  • Loading branch information
aslilac committed Nov 1, 2023
commit f132aee08512b5a1d74b4106ebbf89dfaedd06d4
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { type Interpolation, type Theme } from "@emotion/react";
import Button from "@mui/material/Button";
import { makeStyles, useTheme } from "@mui/styles";
import { useTheme } from "@mui/styles";
import Skeleton from "@mui/material/Skeleton";
import AddIcon from "@mui/icons-material/AddOutlined";
import RefreshIcon from "@mui/icons-material/Refresh";
import { GetLicensesResponse } from "api/api";
import type { GetLicensesResponse } from "api/api";
import { Header } from "components/DeploySettingsLayout/Header";
import { LicenseCard } from "./LicenseCard";
import { Stack } from "components/Stack/Stack";
import { FC } from "react";
import { type FC } from "react";
import Confetti from "react-confetti";
import { Link } from "react-router-dom";
import useWindowSize from "react-use/lib/useWindowSize";
Expand Down Expand Up @@ -38,10 +39,8 @@ const LicensesSettingsPageView: FC<Props> = ({
removeLicense,
refreshEntitlements,
}) => {
const styles = useStyles();
const { width, height } = useWindowSize();

const theme = useTheme();
const { width, height } = useWindowSize();

return (
<>
Expand Down Expand Up @@ -130,27 +129,27 @@ const LicensesSettingsPageView: FC<Props> = ({
);
};

const useStyles = makeStyles((theme) => ({
title: {
const styles = {
title: (theme) => ({
fontSize: theme.spacing(2),
},
}),

root: {
root: (theme) => ({
minHeight: theme.spacing(30),
display: "flex",
alignItems: "center",
justifyContent: "center",
borderRadius: theme.shape.borderRadius,
border: `1px solid ${theme.palette.divider}`,
padding: theme.spacing(6),
},
}),

description: {
description: (theme) => ({
color: theme.palette.text.secondary,
textAlign: "center",
maxWidth: theme.spacing(58),
marginTop: theme.spacing(1),
},
}));
}),
} satisfies Record<string, Interpolation<Theme>>;

export default LicensesSettingsPageView;