diff options
Diffstat (limited to 'src/components/AttachLink/AttachLink.tsx')
-rw-r--r-- | src/components/AttachLink/AttachLink.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/AttachLink/AttachLink.tsx b/src/components/AttachLink/AttachLink.tsx index b8742a2..eb7aebd 100644 --- a/src/components/AttachLink/AttachLink.tsx +++ b/src/components/AttachLink/AttachLink.tsx @@ -13,9 +13,9 @@ const AttachLink: React.FC<PropTypes> = ({ callback, children }) => { const handleOpen = (): void => { setIsOpen(true); }; - + const defaultButton = ( - <Button + <Button onClick={handleOpen} variant="outlined" color="primary" @@ -26,7 +26,7 @@ const AttachLink: React.FC<PropTypes> = ({ callback, children }) => { ); const child = children && React.Children.toArray(children)[0]; - + return ( <> <Modal callback={callback} isOpen={isOpen} setIsOpen={setIsOpen} /> |