mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01:00
Refactor ThreeDotsMenu component to include additional props
This commit is contained in:
parent
1ec0a26199
commit
81b71f8153
|
@ -18,9 +18,9 @@ ThreeDotsMenu.propTypes = {
|
||||||
children: PropTypes.arrayOf(PropTypes.node).isRequired,
|
children: PropTypes.arrayOf(PropTypes.node).isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
function ThreeDotsMenu({ children }) {
|
function ThreeDotsMenu({ children, ...props }) {
|
||||||
return (
|
return (
|
||||||
<div className="dropdown">
|
<div className="dropdown position-static" {...props}>
|
||||||
<Button
|
<Button
|
||||||
className="btn-sm btn-link text-body"
|
className="btn-sm btn-link text-body"
|
||||||
data-bs-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user