File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/textbooks/textbook-form Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import FormikControl from '../../generic/FormikControl';
21
21
import PromptIfDirty from '../../generic/prompt-if-dirty/PromptIfDirty' ;
22
22
import ModalDropzone from '../../generic/modal-dropzone/ModalDropzone' ;
23
23
import { useModel } from '../../generic/model-store' ;
24
- import { UPLOAD_FILE_MAX_SIZE } from '../.. /constants' ;
24
+ import { getUploadFileMaxSize } from '@src /constants' ;
25
25
import textbookFormValidationSchema from './validations' ;
26
26
import messages from './messages' ;
27
27
@@ -171,7 +171,7 @@ const TextbookForm = ({
171
171
onSavingStatus = { onSavingStatus }
172
172
invalidFileSizeMore = { intl . formatMessage (
173
173
messages . uploadModalFileInvalidSizeText ,
174
- { maxSize : UPLOAD_FILE_MAX_SIZE / ( 1000 * 1000 ) } ,
174
+ { maxSize : getUploadFileMaxSize ( ) / ( 1000 * 1000 ) } ,
175
175
) }
176
176
onSelectFile = { setSelectedFile }
177
177
previewComponent = { (
You can’t perform that action at this time.
0 commit comments