IO-134 Limit shop uploads based on plan.
This commit is contained in:
@@ -16,6 +16,8 @@ function JobsDocumentsComponent({
|
||||
refetch,
|
||||
billId,
|
||||
billsCallback,
|
||||
totalSize,
|
||||
bodyshop,
|
||||
}) {
|
||||
const [galleryImages, setgalleryImages] = useState({ images: [], other: [] });
|
||||
const { t } = useTranslation();
|
||||
@@ -104,7 +106,7 @@ function JobsDocumentsComponent({
|
||||
}, [data, setgalleryImages, t]);
|
||||
|
||||
return (
|
||||
<div className="clea rfix">
|
||||
<div>
|
||||
<Row gutter={[16, 16]}>
|
||||
<Col span={24}>
|
||||
<Space wrap>
|
||||
@@ -126,6 +128,7 @@ function JobsDocumentsComponent({
|
||||
<Card>
|
||||
<DocumentsUploadComponent
|
||||
jobId={jobId}
|
||||
totalSize={totalSize}
|
||||
billId={billId}
|
||||
callbackAfterUpload={billsCallback || refetch}
|
||||
/>
|
||||
|
||||
@@ -23,6 +23,7 @@ export default function JobsDocumentsContainer({
|
||||
return (
|
||||
<JobDocuments
|
||||
data={(data && data.documents) || documentsList || []}
|
||||
totalSize={data && data.documents_aggregate.aggregate.sum.size}
|
||||
billId={billId}
|
||||
jobId={jobId}
|
||||
refetch={refetch}
|
||||
|
||||
Reference in New Issue
Block a user