diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:42:52 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:42:52 +0800 |
commit | 61fa34e2ce9481333c0632dabdaf03582c71a78a (patch) | |
tree | f578357673b508d09e4116c861ed661b98ca3e19 /packages/website/ts/components | |
parent | 09e59cf67761e86046221d058a9632730a5a632a (diff) | |
download | dexon-sol-tools-61fa34e2ce9481333c0632dabdaf03582c71a78a.tar.gz dexon-sol-tools-61fa34e2ce9481333c0632dabdaf03582c71a78a.tar.zst dexon-sol-tools-61fa34e2ce9481333c0632dabdaf03582c71a78a.zip |
Fix tslint
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/portal/menu.tsx | 4 | ||||
-rw-r--r-- | packages/website/ts/components/portal/portal.tsx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/components/portal/menu.tsx b/packages/website/ts/components/portal/menu.tsx index e8353a3b0..6a3301549 100644 --- a/packages/website/ts/components/portal/menu.tsx +++ b/packages/website/ts/components/portal/menu.tsx @@ -61,13 +61,13 @@ export const Menu: React.StatelessComponent<MenuProps> = (props: MenuProps) => { return ( <div> {_.map(props.menuItemEntries, entry => { - const selected = entry.to === props.selectedPath; + const isSelected = entry.to === props.selectedPath; return ( <MenuItem key={entry.to} to={entry.to}> <MenuItemLabel title={entry.labelText} iconName={entry.iconName} - selected={selected} + selected={isSelected} theme={props.theme} /> </MenuItem> diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index b992204a7..1bd318c28 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -466,8 +466,8 @@ export class Portal extends React.Component<PortalProps, PortalState> { this.props.dispatcher.updateScreenWidth(newScreenWidth); } private _isSmallScreen(): boolean { - const result = this.props.screenWidth === ScreenWidths.Sm; - return result; + const isSmallScreen = this.props.screenWidth === ScreenWidths.Sm; + return isSmallScreen; } } |