Skip to content

Commit 944b419

Browse files
authored
Update ModalDropzone.jsx
1 parent 457791b commit 944b419

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/generic/modal-dropzone/ModalDropzone.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { FileUpload as FileUploadIcon } from '@openedx/paragon/icons';
1515

1616
import useModalDropzone from './useModalDropzone';
1717
import messages from './messages';
18-
import { UPLOAD_FILE_MAX_SIZE } from '../../constants';
18+
import { getUploadFileMaxSize } from '@src/constants';
1919

2020
const ModalDropzone = ({
2121
fileTypes,
@@ -30,7 +30,7 @@ const ModalDropzone = ({
3030
onChange,
3131
onSavingStatus,
3232
onSelectFile,
33-
maxSize = UPLOAD_FILE_MAX_SIZE,
33+
maxSize = getUploadFileMaxSize(),
3434
}) => {
3535
const {
3636
intl,
@@ -129,7 +129,7 @@ ModalDropzone.defaultProps = {
129129
imageHelpText: '',
130130
previewComponent: null,
131131
imageDropzoneText: '',
132-
maxSize: UPLOAD_FILE_MAX_SIZE,
132+
maxSize: getUploadFileMaxSize(),
133133
invalidFileSizeMore: '',
134134
onSelectFile: null,
135135
};

0 commit comments

Comments
 (0)