aboutsummaryrefslogtreecommitdiff
path: root/src/components/AttachLink
diff options
context:
space:
mode:
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
}
</>
);