remove extra div

This commit is contained in:
Sean Yesmunt 2020-05-28 10:47:27 -04:00
parent c2b80d3b3b
commit f03fe9f78b

View file

@ -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>
) )
); );
} }