BOD-84 Added base calculations for schedule load

This commit is contained in:
Patrick Fic
2020-05-08 15:33:08 -07:00
parent 3d74a4106e
commit 6096fce7a6
17 changed files with 456 additions and 122 deletions

View File

@@ -8,16 +8,15 @@ import { setModalContext } from "../../redux/modals/modals.actions";
import ScheduleCalendarWrapperComponent from "../schedule-calendar-wrapper/scheduler-calendar-wrapper.component";
import ScheduleModal from "../schedule-job-modal/schedule-job-modal.container";
const mapDispatchToProps = dispatch => ({
setScheduleContext: context =>
dispatch(setModalContext({ context: context, modal: "schedule" }))
const mapDispatchToProps = (dispatch) => ({
setScheduleContext: (context) =>
dispatch(setModalContext({ context: context, modal: "schedule" })),
});
export function ScheduleCalendarComponent({
data,
refetch,
setScheduleContext
setScheduleContext,
}) {
const { t } = useTranslation();
@@ -36,8 +35,8 @@ export function ScheduleCalendarComponent({
setScheduleContext({
actions: { refetch: refetch },
context: {
jobId: null
}
jobId: null,
},
});
}}
>
@@ -46,11 +45,7 @@ export function ScheduleCalendarComponent({
<ScheduleModal />
<ScheduleCalendarWrapperComponent
data={data}
defaultView="week"
refetch={refetch}
/>
<ScheduleCalendarWrapperComponent data={data} refetch={refetch} />
</div>
);
}