Found graphql input objects.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user