Skip to content

Commit

Permalink
Merge pull request #314 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #0000 fix: time picker issue fixed
  • Loading branch information
itsvick authored Sep 30, 2024
2 parents 496476c + 8c516bd commit 2004b98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import SessionMode from './SessionMode';
import { showToastMessage } from './Toastify';
import WeekDays from './WeekDays';
import { getOptionsByCategory } from '@/utils/Helper';
import { MobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker';

dayjs.extend(utc);
dayjs.extend(timezone);
Expand Down Expand Up @@ -1388,7 +1389,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
<Grid sx={{ paddingTop: '0px !important' }} item xs={6}>
<Box sx={{ mt: 3 }}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<CustomTimePicker
<MobileTimePicker
label={t('CENTER_SESSION.START_TIME')}
value={block?.sessionStartTime || startTime}
onChange={(newValue) =>
Expand All @@ -1407,7 +1408,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
<Grid sx={{ paddingTop: '0px !important' }} item xs={6}>
<Box sx={{ mt: 3 }}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<CustomTimePicker
<MobileTimePicker
label={t('CENTER_SESSION.END_TIME')}
value={block?.sessionEndTime || endTime}
onChange={(newValue) =>
Expand Down Expand Up @@ -1462,7 +1463,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
>
<Box sx={{ mt: 3 }}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<CustomTimePicker
<MobileTimePicker
label={t('CENTER_SESSION.START_TIME')}
value={block?.sessionStartTime || startTime}
onChange={(newValue) =>
Expand All @@ -1485,7 +1486,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
>
<Box sx={{ mt: 3 }}>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<CustomTimePicker
<MobileTimePicker
label={t('CENTER_SESSION.END_TIME')}
value={block?.sessionEndTime || endTime}
onChange={(newValue) =>
Expand Down

0 comments on commit 2004b98

Please sign in to comment.