From 27df4f7f0b6946efc336b70bb54042c54fca7f51 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Sat, 12 Feb 2022 15:42:41 +0330 Subject: [PATCH] update --- src/components/ReactTable3/EditButtons.js | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/components/ReactTable3/EditButtons.js b/src/components/ReactTable3/EditButtons.js index 57c80a3..2bf28a8 100644 --- a/src/components/ReactTable3/EditButtons.js +++ b/src/components/ReactTable3/EditButtons.js @@ -5,9 +5,10 @@ import filter from './filter.svg'; import settings from './settings.svg'; import arrow from './blue-arrow.svg'; import plus from './plus.svg'; +import { GlobalFilter } from './GlobalFilter'; -export function EditButtons({buttons}) { - // const [openModal, setOpenModal] = useState(false); +export function EditButtons({buttons }) { + const [openModal, setOpenModal] = useState(false); return (
@@ -15,12 +16,27 @@ export function EditButtons({buttons}) { {buttons.map((button,index) =>(
setOpenModal(true)} + onClick={() => setOpenModal(true)} >

{button.title}

))} + {/* */} +
setOpenModal(false)} + > + {/* */} +
e.stopPropagation()} +> +
+ +
); }