From 02c346c65f266c1ffc108a27795c4aee9bb7616b Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Thu, 13 Aug 2020 21:36:51 +0300
Subject: fix: resolve eslint errors

---
 src/components/FileUpload/FileUpload.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/components/FileUpload/FileUpload.tsx')

diff --git a/src/components/FileUpload/FileUpload.tsx b/src/components/FileUpload/FileUpload.tsx
index dca70b1..67d280d 100644
--- a/src/components/FileUpload/FileUpload.tsx
+++ b/src/components/FileUpload/FileUpload.tsx
@@ -35,9 +35,10 @@ const FileUpload: React.FC<PropTypes> = ({ callback, children }) => {
   return (
     <>
       <HiddenFileInput accept=".jpg, .jpeg, .png, .gif" multiple={false} />
-      {React.isValidElement(child)
-        ? React.cloneElement(child, { onClick })
-        : defaultButton
+      {
+        React.isValidElement(child)
+          ? React.cloneElement(child, { onClick })
+          : defaultButton
       }
     </>
   );
-- 
cgit v1.2.3

