Skip to content

Commit

Permalink
Task #PS-1656 : UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas1434shinde committed Sep 25, 2024
1 parent 386c5e5 commit ad140bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/components/SessionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<SessionsCardProps> = ({
data,
showCenterName = false,
Expand All @@ -29,7 +28,6 @@ const SessionsCard: React.FC<SessionsCardProps> = ({
}) => {
const theme = useTheme<any>();
const { t } = useTranslation();
const pathname = usePathname();
const [open, setOpen] = React.useState(false);
const [snackbarOpen, setSnackbarOpen] = React.useState(false);
const [eventDeleted, setEventDeleted] = React.useState(false);
Expand Down Expand Up @@ -157,13 +155,10 @@ const SessionsCard: React.FC<SessionsCardProps> = ({
const subject = data?.metadata?.subject;
const sessionTitle = data?.shortDescription;

const center = pathname.includes('/centers');

return (
<Box
sx={{
border: `1px solid ${theme.palette.warning['A100']}`,
marginBottom: center ? '38px' : 'unset',
borderRadius: '8px',
}}
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/centers/[cohortId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ const CohortPage = () => {
className="mySwiper"
>
{sortedSessions?.map((item: any, index: any) => (
<SwiperSlide key={index}>
<SwiperSlide style={{ paddingBottom: '38px' }} key={index}>
<SessionCard
data={item}
isEventDeleted={handleEventDeleted}
Expand Down

0 comments on commit ad140bd

Please sign in to comment.