fix: remove last import of @mui/material/SvgIcon (#24916)

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.
This commit is contained in:
Jake Howell
2026-05-06 11:50:52 +10:00
committed by GitHub
parent f6233e622b
commit 859e5d3dda
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -99,7 +99,7 @@
// "@mui/material/Snackbar": "Use components/GlobalSnackbar instead.",
// "@mui/material/Stack": "Use Tailwind flex utilities instead (e.g., <div className='flex flex-col gap-4'>).",
// "@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.",
@@ -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<SupportIconProps> = ({ icon, className }) => {
}
};
const GithubStar: FC<SvgIconProps> = (props) => (
const GithubStar: FC<ComponentProps<"svg">> = (props) => (
<svg
aria-hidden="true"
height="16"
-1
View File
@@ -202,7 +202,6 @@ export default defineConfig({
"@mui/material/Skeleton",
"@mui/material/Snackbar",
"@mui/material/Stack",
"@mui/material/SvgIcon",
"@mui/material/TableRow",
"@mui/material/TextField",
"@mui/material/ToggleButton",