mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Refactor ThreeDotsMenu component to include additional props
This commit is contained in:
		@@ -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"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user