diff --git a/src/components/ReactTable4/EditButtons.js b/src/components/ReactTable4/EditButtons.js index 479dbc9..c73997b 100644 --- a/src/components/ReactTable4/EditButtons.js +++ b/src/components/ReactTable4/EditButtons.js @@ -6,38 +6,51 @@ import more from "./more2.svg"; import DropDown from "./DropDown"; export function EditButtons({ buttons }) { - const [selectedButton, setSelectedButton] = useState(null); + const [activeFilter, setActiveFilter] = useState(null); return ( -
- {buttons.map((button, index) => ( -
-
- setSelectedButton(selectedButton === button ? null : button) - } - > -

{button.title}

- -
-
- ))} -
{selectedButton?.components}
+
+ + {/* filter */} + setActiveFilter(!activeFilter)} + /> + {/* dropDown */} + + {/* dropDownItems */} +
); }