Further cleanup of components for subscription use

This commit is contained in:
Patrick Fic
2019-12-11 18:50:48 -08:00
parent f333301f67
commit 3c3f1e8650
6 changed files with 7 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
import React from "react";
import { useQuery, useSubscription } from "@apollo/react-hooks";
import AlertComponent from "../../components/alert/alert.component";
//import { GET_ALL_OPEN_JOBS } from "../../graphql/jobs.queries";
import { Table, Divider, Icon } from "antd";
@@ -76,9 +77,7 @@ export default function JobsPage() {
];
//if (loading) return "Loading";
if (error) return `Error! ${error.message}`;
//console.log("$$$Develop (jobs.page.jsx) | jobs", jobs);
console.log("JobsPage Rendering...");
if (error) return <AlertComponent message={error.message} />;
return (
<div>