Added ATS Info to Calendar IO-711
This commit is contained in:
@@ -27,16 +27,6 @@ export function ScheduleCalendarWrapperComponent({
|
||||
const history = useHistory();
|
||||
|
||||
const handleEventPropStyles = (event, start, end, isSelected) => {
|
||||
// if (!!!bodyshop.ssbuckets) {
|
||||
// return {};
|
||||
// }
|
||||
// const defaultEventColor = "#3174ad";
|
||||
// const jobHrs = result.jobs_by_pk.jobhrs.aggregate.sum.mod_lb_hrs;
|
||||
// const JobBucket = bodyshop.ssbuckets.filter(
|
||||
// (bucket) =>
|
||||
// bucket.gte <= jobHrs && (!!bucket.lt ? bucket.lt > jobHrs : true)
|
||||
// )[0];
|
||||
|
||||
return {
|
||||
...(event.color
|
||||
? {
|
||||
@@ -70,15 +60,15 @@ export function ScheduleCalendarWrapperComponent({
|
||||
search.view = view;
|
||||
history.push({ search: queryString.stringify(search) });
|
||||
}}
|
||||
step={30}
|
||||
timeslots={1}
|
||||
step={15}
|
||||
// timeslots={1}
|
||||
showMultiDayTimes
|
||||
localizer={localizer}
|
||||
min={
|
||||
bodyshop.schedule_start_time
|
||||
? new Date(bodyshop.schedule_start_time)
|
||||
: new Date("2020-01-01T06:00:00")
|
||||
}
|
||||
}
|
||||
max={
|
||||
bodyshop.schedule_end_time
|
||||
? new Date(bodyshop.schedule_end_time)
|
||||
@@ -86,8 +76,9 @@ export function ScheduleCalendarWrapperComponent({
|
||||
}
|
||||
eventPropGetter={handleEventPropStyles}
|
||||
components={{
|
||||
event: (e) => Event({ bodyshop: bodyshop, event: e.event, refetch: refetch }),
|
||||
header: HeaderComponent,
|
||||
event: (e) =>
|
||||
Event({ bodyshop: bodyshop, event: e.event, refetch: refetch }),
|
||||
header: (p) => <HeaderComponent {...p} events={data} />,
|
||||
}}
|
||||
{...otherProps}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user