interface DropdownMenuDataProps {
- id: string,
- icon: React.ComponentType,
+ id: string;
+ icon: React.ComponentType;
}
state = {
anchorEl: undefined
- }
+ };
transformOrigin: PopoverOrigin = {
vertical: "top",
horizontal: "center"
- }
+ };
render() {
const { icon: Icon, id, children } = this.props;
{children}
</Menu>
</div>
- )
+ );
}
handleClose = () => {
- this.setState({ anchorEl: undefined })
+ this.setState({ anchorEl: undefined });
}
handleOpen = (event: React.MouseEvent<HTMLButtonElement>) => {
- this.setState({ anchorEl: event.currentTarget })
+ this.setState({ anchorEl: event.currentTarget });
}
}
-export default DropdownMenu
+export default DropdownMenu;