diff --git a/src/pages/block.tsx b/src/pages/block.tsx index 4165b65b..2b00925b 100644 --- a/src/pages/block.tsx +++ b/src/pages/block.tsx @@ -11,6 +11,7 @@ import MenuItem from "@mui/material/MenuItem"; import Select, { SelectChangeEvent } from "@mui/material/Select"; import PageSizeSelector from "@/components/PageSelector"; import { useTranslation } from "next-i18next"; +import { useMediaQuery } from "@mui/material"; // Static Data const staticStateData = [ @@ -38,6 +39,8 @@ const Block: React.FC = () => { const [pageSize, setPageSize] = useState(10); const [sortDirection, setSortDirection] = useState<"asc" | "desc">("asc"); const [selectedFilter, setSelectedFilter] = useState("All"); + const isMobile = useMediaQuery("(max-width:600px)"); + const isMediumScreen = useMediaQuery("(max-width:986px)"); const columns = useMemo( () => [ @@ -142,10 +145,27 @@ const Block: React.FC = () => { return ( - - - - States + + + + + States + - - - Districts + + + + Districts +