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()} +> +
+ +
); }