Skip to content

Commit

Permalink
remove useless fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
adguernier committed Feb 2, 2024
1 parent 2d892ed commit d342720
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/app/js/admin/removedResources/ImportButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,22 @@ const ImportButton = ({ p: polyglot }) => {
}

return (
<>
<Button
component="label"
variant="text"
className="export"
startIcon={
uploading ? <CircularProgress size="1em" /> : <UploadIcon />
}
disabled={uploading}
>
{buttonLabel}
<VisuallyHiddenInput
onChange={handleFileChange}
type="file"
accept="application/json"
/>
</Button>
</>
<Button
component="label"
variant="text"
className="export"
startIcon={
uploading ? <CircularProgress size="1em" /> : <UploadIcon />
}
disabled={uploading}
>
{buttonLabel}
<VisuallyHiddenInput
onChange={handleFileChange}
type="file"
accept="application/json"
/>
</Button>
);
};

Expand Down

0 comments on commit d342720

Please sign in to comment.