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 (
|
||||
!!uploadCount && (
|
||||
<div>
|
||||
<Card
|
||||
title={__('Currently Uploading')}
|
||||
subtitle={
|
||||
uploadCount > 1
|
||||
? __('You files are currently uploading. This will update automatically.')
|
||||
: __('Your file is currently uploading. This will update automatically.')
|
||||
}
|
||||
body={
|
||||
<section>
|
||||
{/* $FlowFixMe */}
|
||||
{Object.values(currentUploads).map(({ progress, params, xhr }) => (
|
||||
<WebUploadItem key={`upload${params.name}`} progress={progress} params={params} xhr={xhr} />
|
||||
))}
|
||||
</section>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<Card
|
||||
title={__('Currently Uploading')}
|
||||
subtitle={
|
||||
uploadCount > 1
|
||||
? __('You files are currently uploading. This will update automatically.')
|
||||
: __('Your file is currently uploading. This will update automatically.')
|
||||
}
|
||||
body={
|
||||
<section>
|
||||
{/* $FlowFixMe */}
|
||||
{Object.values(currentUploads).map(({ progress, params, xhr }) => (
|
||||
<WebUploadItem key={`upload${params.name}`} progress={progress} params={params} xhr={xhr} />
|
||||
))}
|
||||
</section>
|
||||
}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue