From 625ae3280bdf83b66a66873344acad4103d30006 Mon Sep 17 00:00:00 2001 From: eug-vs <eug-vs@keemail.me> Date: Thu, 13 Aug 2020 21:33:03 +0300 Subject: feat: create FileUpload component --- src/components/AttachLink/AttachLink.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/AttachLink') 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} /> -- cgit v1.2.3