Adding of generic appointments to calendar.

This commit is contained in:
Patrick Fic
2020-02-12 12:11:35 -08:00
parent 314c9e82d2
commit 63f8267ded
46 changed files with 1187 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
import React from "react";
import React, { useState } from "react";
import { useQuery } from "react-apollo";
import ScheduleCalendarComponent from "./schedule-calendar.component";
import { QUERY_ALL_ACTIVE_APPOINTMENTS } from "../../graphql/appointments.queries";
@@ -12,6 +12,7 @@ export default function ScheduleCalendarContainer() {
fetchPolicy: "network-only"
}
);
const scheduleModalState = useState(false);
if (loading) return <LoadingSpinner />;
if (error) return <AlertComponent message={error.message} type="error" />;
@@ -27,6 +28,7 @@ export default function ScheduleCalendarContainer() {
return (
<ScheduleCalendarComponent
scheduleModalState={scheduleModalState}
refetch={refetch}
data={data ? normalizedData : null}
/>