From 859e5d3ddac913273b9cd98835053e13513490f9 Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Wed, 6 May 2026 11:50:52 +1000 Subject: [PATCH] fix: remove last import of `@mui/material/SvgIcon` (#24916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This pull-request finds the last place we make use of `@mui/material/SvgIcon` and removes it 🙂 Therefore, another MUI import we no longer need. --- biome.jsonc | 2 +- site/src/modules/dashboard/Navbar/SupportIcon.tsx | 5 ++--- site/vite.config.mts | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index 7a172ebaad..a0aa490c6b 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -99,7 +99,7 @@ // "@mui/material/Snackbar": "Use components/GlobalSnackbar instead.", // "@mui/material/Stack": "Use Tailwind flex utilities instead (e.g.,
).", // "@mui/material/styles": "Use Tailwind CSS instead.", - // "@mui/material/SvgIcon": "Use lucide-react icons instead.", + "@mui/material/SvgIcon": "Use lucide-react icons instead.", "@mui/material/Switch": "Use shadcn/ui Switch component instead.", "@mui/material/Table": "Import from components/Table/Table instead.", "@mui/material/TableRow": "Import from components/Table/Table instead.", diff --git a/site/src/modules/dashboard/Navbar/SupportIcon.tsx b/site/src/modules/dashboard/Navbar/SupportIcon.tsx index 6e111c02db..0868539028 100644 --- a/site/src/modules/dashboard/Navbar/SupportIcon.tsx +++ b/site/src/modules/dashboard/Navbar/SupportIcon.tsx @@ -1,6 +1,5 @@ -import type { SvgIconProps } from "@mui/material/SvgIcon"; import { BookOpenTextIcon, BugIcon, MessageSquareIcon } from "lucide-react"; -import type { FC } from "react"; +import type { ComponentProps, FC } from "react"; import { ExternalImage } from "#/components/ExternalImage/ExternalImage"; interface SupportIconProps { @@ -23,7 +22,7 @@ export const SupportIcon: FC = ({ icon, className }) => { } }; -const GithubStar: FC = (props) => ( +const GithubStar: FC> = (props) => (