import React from "react"; import { useQuery, useSubscription } from "@apollo/react-hooks"; //import { GET_ALL_OPEN_JOBS } from "../../graphql/jobs.queries"; import { Table, Divider, Icon } from "antd"; import { GET_ALL_OPEN_JOBS, SUBSCRIPTION_ALL_OPEN_JOBS } from "../../graphql/jobs.queries"; export default function JobsPage() { const { loading, error, data } = useQuery(GET_ALL_OPEN_JOBS); //const { loading, error, data } = useSubscription(SUBSCRIPTION_ALL_OPEN_JOBS); const columns = [ { title: "RO #", dataIndex: "ro_number", key: "ro_number" }, { title: "Est. #", dataIndex: "est_number", key: "est_number" }, { title: "Status", dataIndex: "status", key: "status" }, { title: "Customer", dataIndex: "customer", key: "customer", render: (text, record) => { return record.owner ? (