From 3981ae69fddae5c4779105482c214cf28b04d0b1 Mon Sep 17 00:00:00 2001 From: Likhith Kolayari Date: Fri, 11 Nov 2022 10:37:38 +0400 Subject: [PATCH] migrate-file-uploader-WIP --- .../unsupported/card-details/uploader.jsx | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/packages/account/src/Components/poi/status/unsupported/card-details/uploader.jsx b/packages/account/src/Components/poi/status/unsupported/card-details/uploader.jsx index 3adf0d97778a..c024b98e052a 100644 --- a/packages/account/src/Components/poi/status/unsupported/card-details/uploader.jsx +++ b/packages/account/src/Components/poi/status/unsupported/card-details/uploader.jsx @@ -94,23 +94,21 @@ const Uploader = ({ data, value, is_full, onChange, has_frame }) => { handleChange(file, setFieldValue); }; - const ValidationErrorMessage = open => { - return ( -
- {image.errors.map((error, index) => ( - - {error} - - ))} -
- ); - }; + const ValidationErrorMessage = open => ( +
+ {image.errors.map((error, index) => ( + + {error} + + ))} +
+ ); return (