aboutsummaryrefslogtreecommitdiff
path: root/src/components/AttachLink
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-13 21:36:51 +0300
committereug-vs <eug-vs@keemail.me>2020-08-13 21:36:51 +0300
commit02c346c65f266c1ffc108a27795c4aee9bb7616b (patch)
tree1803ffc3e735859a550f8e4d16a7d0e576f742ec /src/components/AttachLink
parent625ae3280bdf83b66a66873344acad4103d30006 (diff)
downloadwhich-ui-02c346c65f266c1ffc108a27795c4aee9bb7616b.tar.gz
fix: resolve eslint errors
Diffstat (limited to 'src/components/AttachLink')
-rw-r--r--src/components/AttachLink/AttachLink.tsx9
1 files changed, 5 insertions, 4 deletions
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
}
</>
);