diff --git a/js/components/ContextMenu.tsx b/js/components/ContextMenu.tsx index 23947a2a..8faa183c 100644 --- a/js/components/ContextMenu.tsx +++ b/js/components/ContextMenu.tsx @@ -34,8 +34,8 @@ class Portal extends React.Component { render() { const style = { - top: String(this.props.top), - left: String(this.props.left), + top: this.props.top, + left: this.props.left, // WTF Typescript. There's got to be a better way. position: "absolute" as "absolute" }; @@ -78,7 +78,10 @@ export const LinkNode = (props: LinkNodeProps) => ( interface NodeProps { label: string; checked: boolean; + hotkey?: string; className?: string; + // TODO: Figure out how to do passthrough props + onClick?: () => void; } export const Node = (props: NodeProps) => {