diff --git a/apps/dashboard/components/heading.tsx b/apps/dashboard/components/heading.tsx index c8352ad5b4..5a57170ac0 100644 --- a/apps/dashboard/components/heading.tsx +++ b/apps/dashboard/components/heading.tsx @@ -1,6 +1,9 @@ "use client" import React from "react" -import { Box, Typography } from "@mui/joy" + +import { Box } from "@mui/joy" +import { Typography, useMediaQuery, useTheme } from "@mui/material" + import { usePathname } from "next/navigation" import { URLS } from "@/app/url" @@ -21,6 +24,8 @@ export function getTitle(path: string): { const Heading = () => { const pathName = usePathname() const pageInfo = getTitle(pathName) + const theme = useTheme() + const isMobileDevice = useMediaQuery(theme.breakpoints.down("sm")) return ( { justifyContent: "space-between", }} > - {pageInfo.title} + {pageInfo.title} {pageInfo.badge}