Skip to content

Commit

Permalink
Issue #PS-1517 fix: Center Sessions month view calendar UI implementa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
shreyas143shinde committed Jul 24, 2024
1 parent cc8da1e commit cb6fc9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import AddIcon from '@mui/icons-material/Add';
import DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { MobileDatePicker } from '@mui/x-date-pickers/MobileDatePicker';
import { PlannedModalProps } from '@/utils/Interfaces';
import Stack from '@mui/material/Stack';
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
import { sessionMode } from '@/utils/app.constant';
Expand All @@ -31,7 +32,7 @@ import { useTranslation } from 'next-i18next';

type mode = (typeof sessionMode)[keyof typeof sessionMode];

const PlannedSession = ({ removeModal }) => {
const PlannedSession: React.FC<PlannedModalProps> = ({ removeModal }) => {
const [mode, setMode] = useState<mode>(sessionMode.OFFLINE);

const handleSessionModeChange = (event: ChangeEvent<HTMLInputElement>) => {
Expand Down
1 change: 0 additions & 1 deletion src/pages/centers/[cohortId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const TeachingCenterDetails = () => {
const { t } = useTranslation();
const [open, setOpen] = React.useState(false);
const theme = useTheme<any>();
const currentDate = getTodayDate();
const [selectedDate, setSelectedDate] =
React.useState<string>(getTodayDate());

Expand Down
5 changes: 5 additions & 0 deletions src/utils/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ export interface SessionsModalProps {
handlePrimaryModel?: () => void;
secondary?: string;
}

export interface PlannedModalProps {
removeModal?: () => void;
}

export interface AttendanceStatusListProps {
limit: number;
page: number;
Expand Down

0 comments on commit cb6fc9c

Please sign in to comment.