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/AttachLink/AttachLink.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

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

diff --git a/src/components/AttachLink/AttachLink.tsx b/src/components/AttachLink/AttachLink.tsx
index eb7aebd..e73f5c1 100644
--- a/src/components/AttachLink/AttachLink.tsx
+++ b/src/components/AttachLink/AttachLink.tsx
@@ -1,5 +1,5 @@
 import React, { useState } from 'react';
-import { Button, } from '@material-ui/core';
+import Button from '@material-ui/core/Button';
 import LinkIcon from '@material-ui/icons/Link';
 import Modal from './Modal';
 
@@ -30,9 +30,10 @@ const AttachLink: React.FC<PropTypes> = ({ callback, children }) => {
   return (
     <>
       <Modal callback={callback} isOpen={isOpen} setIsOpen={setIsOpen} />
-      {React.isValidElement(child)
-        ? React.cloneElement(child, { onClick: handleOpen })
-        : defaultButton
+      {
+        React.isValidElement(child)
+          ? React.cloneElement(child, { onClick: handleOpen })
+          : defaultButton
       }
     </>
   );
-- 
cgit v1.2.3

