Skip to content

Commit

Permalink
chore(a11y): Re-order dropzone to be above file cards (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Apr 12, 2024
1 parent 0d9513f commit e35f3b2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export const PrivateFileUpload: React.FC<PrivateFileUploadProps> = ({

return (
<>
{hasEmptySlots && (
<Dropzone
slots={slots}
setSlots={setSlots}
setFileUploadStatus={setFileUploadStatus}
maxFiles={maxFiles}
/>
)}
{slots.map((slot) => {
return (
<UploadedFileCard
Expand All @@ -38,14 +46,6 @@ export const PrivateFileUpload: React.FC<PrivateFileUploadProps> = ({
);
})}
<FileStatus status={fileUploadStatus} />
{hasEmptySlots && (
<Dropzone
slots={slots}
setSlots={setSlots}
setFileUploadStatus={setFileUploadStatus}
maxFiles={maxFiles}
/>
)}
</>
);
};

0 comments on commit e35f3b2

Please sign in to comment.