Merged in feature/IO-1828-Front-End-Package-Updates (pull request #1280)

- fix time input boxes with showSeconds deprecated prop
This commit is contained in:
Dave Richer
2024-02-12 21:28:25 +00:00
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ const DateTimePicker = (
disabledDate: (d) => dayjs().isAfter(d),
})}
onChange={onChange}
showSecond={false}
disableSeconds={true}
minuteStep={15}
onBlur={onBlur}
format="hh:mm a"

View File

@@ -48,7 +48,7 @@ export function ScheduleCalendarContainer({calculateScheduleLoad}) {
if (error) return <AlertComponent message={error.message} type="error"/>;
let normalizedData = [
...data.appointments.map((e) => {
//Required becuase Hasura returns a string instead of a date object.
//Required because Hasura returns a string instead of a date object.
return Object.assign(
{},
e,
@@ -57,7 +57,7 @@ export function ScheduleCalendarContainer({calculateScheduleLoad}) {
);
}),
...data.employee_vacation.map((e) => {
//Required becuase Hasura returns a string instead of a date object.
//Required because Hasura returns a string instead of a date object.
return {
...e,
title: `${

View File

@@ -35,7 +35,7 @@ export default function ShopInfoSchedulingComponent({form}) {
},
]}
>
<TimePicker showSecond={false} format="HH:mm"/>
<TimePicker disableSeconds={true} format="HH:mm"/>
</Form.Item>
<Form.Item
label={t("bodyshop.fields.schedule_end_time")}
@@ -47,7 +47,7 @@ export default function ShopInfoSchedulingComponent({form}) {
},
]}
>
<TimePicker showSecond={false} format="HH:mm"/>
<TimePicker disableSeconds={true} format="HH:mm"/>
</Form.Item>
<Form.Item
name={["appt_alt_transport"]}