From d46906175b673aac59c158fe07b2f914241421f5 Mon Sep 17 00:00:00 2001 From: muerwre Date: Fri, 9 Aug 2019 19:16:50 +0700 Subject: [PATCH] nof --- src/components/editors/ImageEditor/index.tsx | 1 + src/redux/uploads/sagas.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/editors/ImageEditor/index.tsx b/src/components/editors/ImageEditor/index.tsx index 0c07d08c..00eed88f 100644 --- a/src/components/editors/ImageEditor/index.tsx +++ b/src/components/editors/ImageEditor/index.tsx @@ -45,4 +45,5 @@ const ImageEditor = connect( mapStateToProps, mapDispatchToProps )(ImageEditorUnconnected); + export { ImageEditor }; diff --git a/src/redux/uploads/sagas.ts b/src/redux/uploads/sagas.ts index ae5dc39e..65bd24d8 100644 --- a/src/redux/uploads/sagas.ts +++ b/src/redux/uploads/sagas.ts @@ -36,6 +36,7 @@ function* uploadWorker(file: File, temp_id: UUID) { return yield call(promise, { temp_id, file }); } + function* uploadFile({ file, temp_id }: IFileWithUUID) { if (!file.type || !VALIDATORS.IS_IMAGE_MIME(file.type)) { return { error: 'File_Not_Image', status: HTTP_RESPONSES.BAD_REQUEST, data: {} };