From c89cd609b9887e9dd5c32b74297699d8c675cc9b Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Sat, 18 May 2019 00:38:07 -0400 Subject: Fixed errors --- src/client/views/ContextMenuItem.tsx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/client/views/ContextMenuItem.tsx b/src/client/views/ContextMenuItem.tsx index aefc633bc..ed583942a 100644 --- a/src/client/views/ContextMenuItem.tsx +++ b/src/client/views/ContextMenuItem.tsx @@ -7,7 +7,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; export interface OriginalMenuProps { description: string; event: (e: React.MouseEvent) => void; - icon: IconProp; //maybe should be optional (icon?) + icon?: IconProp; //maybe should be optional (icon?) } export interface SubmenuProps { @@ -38,27 +38,28 @@ export class ContextMenuItem extends React.Component {
- + {this.props.icon ? : null}
{this.props.description}
-
) + + ); } else { let submenu = null; if (this.overItem) { - submenu = (
- {this._items.map(prop => { - return - })} -
) + submenu = ( +
+ {this._items.map(prop => )} +
+ ); } return ( -
{ - this.overItem = true - })} onMouseLeave={action(() => this.overItem = false)}> +
{ this.overItem = true; })} + onMouseLeave={action(() => this.overItem = false)}>
{this.props.description}
{submenu} -
) +
+ ); } } } \ No newline at end of file -- cgit v1.2.3-70-g09d2