From 50823a28fd1e2ddd6d01c36e4812e63098f1000f Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Mon, 23 Feb 2026 22:29:25 +1100 Subject: [PATCH] fix: remove mui components from `` (#22235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This pull-request removes the `@mui/material/Grid` import from `` so that we can nuke the `` dependency component. 🥳🥳🥳 --- .../AccountPage/AccountUserGroups.tsx | 48 ++++++++----------- site/vite.config.mts | 1 - 2 files changed, 19 insertions(+), 30 deletions(-) diff --git a/site/src/pages/UserSettingsPage/AccountPage/AccountUserGroups.tsx b/site/src/pages/UserSettingsPage/AccountPage/AccountUserGroups.tsx index 49c3052351..76862519d4 100644 --- a/site/src/pages/UserSettingsPage/AccountPage/AccountUserGroups.tsx +++ b/site/src/pages/UserSettingsPage/AccountPage/AccountUserGroups.tsx @@ -1,5 +1,3 @@ -import { useTheme } from "@emotion/react"; -import Grid from "@mui/material/Grid"; import { isApiError } from "api/errors"; import type { Group } from "api/typesGenerated"; import { ErrorAlert } from "components/Alert/ErrorAlert"; @@ -20,7 +18,6 @@ export const AccountUserGroups: FC = ({ error, loading, }) => { - const theme = useTheme(); const { showOrganizations } = useDashboard(); return ( @@ -31,13 +28,7 @@ export const AccountUserGroups: FC = ({ groups && ( You are in{" "} - + {groups.length} group {groups.length !== 1 && "s"} @@ -45,30 +36,29 @@ export const AccountUserGroups: FC = ({ ) } > -
+
{isApiError(error) && } {groups && ( - +
{groups.map((group) => ( - - - {group.total_member_count} member - {group.total_member_count !== 1 && "s"} - - ) - } - /> - + + {group.total_member_count} member + {group.total_member_count !== 1 && "s"} + + ) + } + /> ))} - +
)} {loading && } diff --git a/site/vite.config.mts b/site/vite.config.mts index b67b9a4dfe..18078a548e 100644 --- a/site/vite.config.mts +++ b/site/vite.config.mts @@ -151,7 +151,6 @@ export default defineConfig({ "@mui/material/FormGroup", "@mui/material/FormHelperText", "@mui/material/FormLabel", - "@mui/material/Grid", "@mui/material/IconButton", "@mui/material/InputAdornment", "@mui/material/InputBase",