Skip to content

Commit

Permalink
fix: Form wrapper for upload + label
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed Dec 20, 2023
1 parent 43969b9 commit 72f7d5f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const DropzoneContainer = styled(Box)(({ theme }) => ({
},
}));

const FileList = styled(List)(({ theme }) => ({
const UploadList = styled(List)(({ theme }) => ({
width: "100%",
maxWidth: theme.breakpoints.values.formWrap,
[theme.breakpoints.up("md")]: {
Expand Down Expand Up @@ -182,7 +182,7 @@ function Component(props: Props) {
</ErrorWrapper>
</>
)}
<FileList disablePadding>
<UploadList disablePadding>
{(Object.keys(fileList) as Array<keyof typeof fileList>)
.filter(isCategoryVisible)
.flatMap((fileListCategory) => [
Expand Down Expand Up @@ -211,7 +211,7 @@ function Component(props: Props) {
</ListItem>
)),
])}
</FileList>
</UploadList>
</DropzoneContainer>
<ErrorWrapper error={fileListError} id={`${props.id}-fileList`}>
<Box>
Expand Down

0 comments on commit 72f7d5f

Please sign in to comment.