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:
@@ -36,7 +36,7 @@ const DateTimePicker = (
|
|||||||
disabledDate: (d) => dayjs().isAfter(d),
|
disabledDate: (d) => dayjs().isAfter(d),
|
||||||
})}
|
})}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
showSecond={false}
|
disableSeconds={true}
|
||||||
minuteStep={15}
|
minuteStep={15}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
format="hh:mm a"
|
format="hh:mm a"
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export function ScheduleCalendarContainer({calculateScheduleLoad}) {
|
|||||||
if (error) return <AlertComponent message={error.message} type="error"/>;
|
if (error) return <AlertComponent message={error.message} type="error"/>;
|
||||||
let normalizedData = [
|
let normalizedData = [
|
||||||
...data.appointments.map((e) => {
|
...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(
|
return Object.assign(
|
||||||
{},
|
{},
|
||||||
e,
|
e,
|
||||||
@@ -57,7 +57,7 @@ export function ScheduleCalendarContainer({calculateScheduleLoad}) {
|
|||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
...data.employee_vacation.map((e) => {
|
...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 {
|
return {
|
||||||
...e,
|
...e,
|
||||||
title: `${
|
title: `${
|
||||||
|
|||||||
@@ -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>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.schedule_end_time")}
|
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>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={["appt_alt_transport"]}
|
name={["appt_alt_transport"]}
|
||||||
|
|||||||
Reference in New Issue
Block a user