1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-25 00:11:36 +01:00

Refactor ThreeDotsMenu component to include additional props

This commit is contained in:
Aleksandr Gumroian 2024-10-02 13:14:40 +02:00
parent 1ec0a26199
commit 81b71f8153
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -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"