lml-main
Version:
This is now a mono repository published into many standalone packages.
21 lines • 918 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const cosmoui_1 = require("cosmoui");
class PlaceTableRowAction extends cosmoui_1.HoverableComponent {
constructor() {
super(...arguments);
this.iconStyles = () => ({
display: 'inline-block',
verticalAlign: 'middle',
lineHeight: 0,
});
}
render() {
const { icon, onClick } = this.props;
return (React.createElement("span", { style: this.iconStyles(), onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave },
React.createElement(cosmoui_1.Icon, { primary: this.state.hover, icon: icon, className: "btn-place-edit", size: 26, id: this.props.id, tooltip: "Edit Place", onClick: onClick })));
}
}
exports.PlaceTableRowAction = PlaceTableRowAction;
//# sourceMappingURL=place-table-row-action.js.map