From e9b66a8083dd2ef2c79b75cc535b553443376f6b Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Mon, 23 Feb 2026 22:25:13 +1100 Subject: [PATCH] fix: remove mui components from `` (#22237) --- .../PaginationWidget/PaginationWidgetBase.tsx | 11 ++++------- site/vite.config.mts | 1 - 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/site/src/components/PaginationWidget/PaginationWidgetBase.tsx b/site/src/components/PaginationWidget/PaginationWidgetBase.tsx index 75fb8b9305..699ded797d 100644 --- a/site/src/components/PaginationWidget/PaginationWidgetBase.tsx +++ b/site/src/components/PaginationWidget/PaginationWidgetBase.tsx @@ -1,5 +1,3 @@ -import { useTheme } from "@emotion/react"; -import useMediaQuery from "@mui/material/useMediaQuery"; import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"; import type { FC } from "react"; import { NumberedPageButton, PlaceholderPageButton } from "./PageButtons"; @@ -24,8 +22,6 @@ export const PaginationWidgetBase: FC = ({ hasPreviousPage, hasNextPage, }) => { - const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down("md")); const totalPages = Math.ceil(totalRecords / pageSize); if (totalPages < 2) { @@ -52,19 +48,20 @@ export const PaginationWidgetBase: FC = ({ - {isMobile ? ( +
- ) : ( +
+
- )} +