Further cleanup of components for subscription use
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user