BOD-10 BOD-12 BOD-11 WIP for Manual Job Creation.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import axios from "axios";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import Gallery from "react-grid-gallery";
|
||||
import { Document, Page, pdfjs } from "react-pdf";
|
||||
//import { Document, Page, pdfjs } from "react-pdf";
|
||||
import DocumentsUploadContainer from "../documents-upload/documents-upload.container";
|
||||
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
||||
//import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
||||
import { Collapse } from "antd";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
pdfjs.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.1.266/pdf.worker.min.js`;
|
||||
//pdfjs.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.1.266/pdf.worker.min.js`;
|
||||
|
||||
function JobsDocumentsComponent({ data, jobId, refetch }) {
|
||||
const [galleryImages, setgalleryImages] = useState([]);
|
||||
@@ -87,16 +87,18 @@ function JobsDocumentsComponent({ data, jobId, refetch }) {
|
||||
}}
|
||||
></Gallery>
|
||||
</Collapse.Panel>
|
||||
<Collapse.Panel
|
||||
key="documents"
|
||||
header={t("documents.labels.documents")}
|
||||
>
|
||||
{pdfDocuments.map((doc, idx) => (
|
||||
<Document key={idx} loading={<LoadingSpinner />} file={doc.src}>
|
||||
<Page pageIndex={0} />
|
||||
</Document>
|
||||
))}
|
||||
</Collapse.Panel>
|
||||
{
|
||||
// <Collapse.Panel
|
||||
// key="documents"
|
||||
// header={t("documents.labels.documents")}
|
||||
// >
|
||||
// {pdfDocuments.map((doc, idx) => (
|
||||
// <Document key={idx} loading={<LoadingSpinner />} file={doc.src}>
|
||||
// <Page pageIndex={0} />
|
||||
// </Document>
|
||||
// ))}
|
||||
// </Collapse.Panel>
|
||||
}
|
||||
</Collapse>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user