From ad140bdc64e6a3f40615c99ebc653638780d2e50 Mon Sep 17 00:00:00 2001 From: ttpl-rt-217 Date: Wed, 25 Sep 2024 18:22:52 +0530 Subject: [PATCH] Task #PS-1656 : UI improvements --- src/components/SessionCard.tsx | 5 ----- src/pages/centers/[cohortId]/index.tsx | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/SessionCard.tsx b/src/components/SessionCard.tsx index 82d839bb..b6d59c6e 100644 --- a/src/components/SessionCard.tsx +++ b/src/components/SessionCard.tsx @@ -15,7 +15,6 @@ import CheckCircleTwoToneIcon from '@mui/icons-material/CheckCircleTwoTone'; import SensorsTwoToneIcon from '@mui/icons-material/SensorsTwoTone'; import CircleTwoToneIcon from '@mui/icons-material/CircleTwoTone'; import { EventStatus } from '@/utils/app.constant'; -import { usePathname } from 'next/navigation'; const SessionsCard: React.FC = ({ data, showCenterName = false, @@ -29,7 +28,6 @@ const SessionsCard: React.FC = ({ }) => { const theme = useTheme(); const { t } = useTranslation(); - const pathname = usePathname(); const [open, setOpen] = React.useState(false); const [snackbarOpen, setSnackbarOpen] = React.useState(false); const [eventDeleted, setEventDeleted] = React.useState(false); @@ -157,13 +155,10 @@ const SessionsCard: React.FC = ({ const subject = data?.metadata?.subject; const sessionTitle = data?.shortDescription; - const center = pathname.includes('/centers'); - return ( diff --git a/src/pages/centers/[cohortId]/index.tsx b/src/pages/centers/[cohortId]/index.tsx index 29031775..38507f36 100644 --- a/src/pages/centers/[cohortId]/index.tsx +++ b/src/pages/centers/[cohortId]/index.tsx @@ -641,7 +641,7 @@ const CohortPage = () => { className="mySwiper" > {sortedSessions?.map((item: any, index: any) => ( - +