Added job_status object. Reverted yarn upgrade as there is a breaking change in react-scripts 0.3.3.
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import React from "react";
|
||||
import { useSubscription, useQuery } from "@apollo/react-hooks";
|
||||
import { useSubscription } from "@apollo/react-hooks";
|
||||
import { SUBSCRIPTION_JOBS_IN_PRODUCTION } from "../../graphql/jobs.queries";
|
||||
import { GET_BODYSHOP } from "../../graphql/local.queries";
|
||||
import LoadingSpinner from "../../components/loading-spinner/loading-spinner.component";
|
||||
import Alert from "../../components/alert/alert.component";
|
||||
import WhiteBoardKanBan from "./white-board-kanban.component";
|
||||
|
||||
export default function WhiteBoardKanBanContainer() {
|
||||
// const HookBodyshopData = useQuery(GET_BODYSHOP);
|
||||
const { loading, error, data } = useSubscription(
|
||||
SUBSCRIPTION_JOBS_IN_PRODUCTION,
|
||||
{
|
||||
@@ -46,12 +44,8 @@ export default function WhiteBoardKanBanContainer() {
|
||||
]
|
||||
};
|
||||
|
||||
// if (HookBodyshopData.loading) return "Local query loading";
|
||||
// if (HookBodyshopData.error) return "Local query error" + error.message;
|
||||
// console.log("HookBodyshopData.data", HookBodyshopData.data);
|
||||
if (loading) return <LoadingSpinner />;
|
||||
if (error) return <Alert message={error.message} />;
|
||||
let eventBus;
|
||||
console.log("Sub data", data);
|
||||
return <WhiteBoardKanBan eventBus={eventBus} data={static_data} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user