diff --git a/site/src/pages/DeploymentSettingsPage/LicensesSettingsPage/LicenseCard.tsx b/site/src/pages/DeploymentSettingsPage/LicensesSettingsPage/LicenseCard.tsx index 15edcf5da4..9f93de7368 100644 --- a/site/src/pages/DeploymentSettingsPage/LicensesSettingsPage/LicenseCard.tsx +++ b/site/src/pages/DeploymentSettingsPage/LicensesSettingsPage/LicenseCard.tsx @@ -1,10 +1,7 @@ -import type { CSSObject, Interpolation, Theme } from "@emotion/react"; -import Paper from "@mui/material/Paper"; import type { GetLicensesResponse } from "api/api"; import { Button } from "components/Button/Button"; import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog"; import { Pill } from "components/Pill/Pill"; -import { Stack } from "components/Stack/Stack"; import dayjs from "dayjs"; import { type FC, useState } from "react"; @@ -40,11 +37,9 @@ export const LicenseCard: FC = ({ : "Enterprise"; return ( - = ({ : "Removing this license will disable all Premium features. You can add a new license at any time." } /> - - #{license.id} - +
+ + #{license.id} + + {licenseType} - - - Users - +
+
+ Users + {userLimitActual} {` / ${currentUserLimit || "Unlimited"}`} - +
{license.claims.nbf && ( - - Valid From - +
+ Valid From + {dayjs.unix(license.claims.nbf).format("MMMM D, YYYY")} - +
)} - +
{isExpired ? ( - + Expired ) : ( - Valid Until + Valid Until )} - + {dayjs .unix(license.claims.license_expires) .format("MMMM D, YYYY")} - - - - - - - +
+ +
+
+ ); }; - -const styles = { - userLimit: (theme) => ({ - color: theme.palette.text.primary, - }), - licenseCard: (theme) => ({ - ...(theme.typography.body2 as CSSObject), - padding: 16, - }), - cardContent: {}, - licenseId: (theme) => ({ - color: theme.palette.secondary.main, - fontSize: 18, - fontWeight: 600, - }), - accountType: { - fontWeight: 600, - fontSize: 18, - alignItems: "center", - textTransform: "capitalize", - }, - licenseExpires: (theme) => ({ - color: theme.palette.text.secondary, - }), - expiredBadge: { - marginBottom: 4, - }, - secondaryMaincolor: (theme) => ({ - color: theme.palette.text.secondary, - }), -} satisfies Record>; diff --git a/site/src/theme/mui.ts b/site/src/theme/mui.ts index 95ab85dde0..ac6b36a7a8 100644 --- a/site/src/theme/mui.ts +++ b/site/src/theme/mui.ts @@ -66,17 +66,6 @@ export const components = { underline: "hover", }, }, - MuiPaper: { - defaultProps: { - elevation: 0, - }, - styleOverrides: { - root: ({ theme }) => ({ - border: `1px solid ${theme.palette.divider}`, - backgroundImage: "none", - }), - }, - }, MuiSkeleton: { styleOverrides: { root: ({ theme }) => ({ diff --git a/site/vite.config.mts b/site/vite.config.mts index 2f4bfa15fd..3231f3795c 100644 --- a/site/vite.config.mts +++ b/site/vite.config.mts @@ -161,7 +161,6 @@ export default defineConfig({ "@mui/material/Menu", "@mui/material/MenuItem", "@mui/material/MenuList", - "@mui/material/Paper", "@mui/material/Radio", "@mui/material/RadioGroup", "@mui/material/Select",