Fix hotkey warning

This commit is contained in:
Jordan Eldredge 2018-05-15 17:07:50 -07:00
parent ceb4eeaf2f
commit ce8f1a1821
2 changed files with 3 additions and 2 deletions

View file

@ -63,7 +63,8 @@ export const Node = props => {
};
Node.propTypes = {
label: PropTypes.string.isRequired
label: PropTypes.string.isRequired,
hotkey: PropTypes.string
};
export class ContextMenu extends React.Component {

View file

@ -49,7 +49,7 @@ const MainContextMenu = props => (
label={props.genWindows[i].title}
checked={props.genWindows[i].open}
onClick={() => props.toggleGenWindow(i)}
hotKey={() => props.genWindows[i].hotkey}
hotkey={props.genWindows[i].hotkey}
/>
))}
<Hr />