Transfer.
This commit is contained in:
@@ -6,12 +6,8 @@ import JobTombstone from "../../components/job-tombstone/job-tombstone.component
|
||||
import { GET_JOB_BY_PK } from "../../graphql/jobs.queries";
|
||||
import { Breadcrumb } from "antd";
|
||||
|
||||
import Test from "./test";
|
||||
|
||||
export default function JobsDetailPage({
|
||||
match: { routes, params, children }
|
||||
}) {
|
||||
const { jobId } = params;
|
||||
function JobsDetailPage({ match }) {
|
||||
const { jobId } = match.params;
|
||||
const { loading, error, data } = useSubscription(GET_JOB_BY_PK, {
|
||||
variables: { id: jobId },
|
||||
fetchPolicy: "network-only"
|
||||
@@ -19,11 +15,12 @@ export default function JobsDetailPage({
|
||||
if (loading) return <SpinComponent />;
|
||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||
|
||||
console.log('routes', routes)
|
||||
console.log("routes", match);
|
||||
return (
|
||||
<div>
|
||||
<Breadcrumb routes={routes} params={params} />
|
||||
<Breadcrumb />
|
||||
<JobTombstone job={data.jobs_by_pk} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default JobsDetailPage;
|
||||
|
||||
Reference in New Issue
Block a user