Found graphql input objects.

This commit is contained in:
Patrick Fic
2019-12-14 13:53:56 -08:00
parent 36e8449383
commit 337048f0e9
8 changed files with 172 additions and 78 deletions

View File

@@ -5,6 +5,7 @@ import AlertComponent from "../../components/alert/alert.component";
import { SUBSCRIPTION_ALL_OPEN_JOBS } from "../../graphql/jobs.queries";
import JobsList from "../../components/jobs-list/jobs-list.component";
import Test from "./test";
export default function JobsPage() {
const { loading, error, data } = useSubscription(SUBSCRIPTION_ALL_OPEN_JOBS, {
@@ -13,5 +14,10 @@ export default function JobsPage() {
if (error) return <AlertComponent message={error.message} />;
return <JobsList loading={loading} jobs={data ? data.jobs : null} />;
return (
<div>
<JobsList loading={loading} jobs={data ? data.jobs : null} />
<Test />
</div>
);
}