remove extra div
This commit is contained in:
parent
c2b80d3b3b
commit
f03fe9f78b
1 changed files with 16 additions and 18 deletions
|
@ -19,24 +19,22 @@ export default function WebUploadList(props: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
!!uploadCount && (
|
!!uploadCount && (
|
||||||
<div>
|
<Card
|
||||||
<Card
|
title={__('Currently Uploading')}
|
||||||
title={__('Currently Uploading')}
|
subtitle={
|
||||||
subtitle={
|
uploadCount > 1
|
||||||
uploadCount > 1
|
? __('You files are currently uploading. This will update automatically.')
|
||||||
? __('You files are currently uploading. This will update automatically.')
|
: __('Your file is currently uploading. This will update automatically.')
|
||||||
: __('Your file is currently uploading. This will update automatically.')
|
}
|
||||||
}
|
body={
|
||||||
body={
|
<section>
|
||||||
<section>
|
{/* $FlowFixMe */}
|
||||||
{/* $FlowFixMe */}
|
{Object.values(currentUploads).map(({ progress, params, xhr }) => (
|
||||||
{Object.values(currentUploads).map(({ progress, params, xhr }) => (
|
<WebUploadItem key={`upload${params.name}`} progress={progress} params={params} xhr={xhr} />
|
||||||
<WebUploadItem key={`upload${params.name}`} progress={progress} params={params} xhr={xhr} />
|
))}
|
||||||
))}
|
</section>
|
||||||
</section>
|
}
|
||||||
}
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue