aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-07-12 06:23:53 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-07-12 06:42:20 +0800
commit09f5609618709da0ba10520c6ab6a3e2acac438b (patch)
tree8cb6d251fcba2c244bf8a4e309f0432d45285cc3 /packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx
parentb82fdd59e70e92ef139f5eeed8ed383a89866c7d (diff)
downloaddexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.tar
dexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.tar.gz
dexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.tar.bz2
dexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.tar.lz
dexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.tar.xz
dexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.tar.zst
dexon-sol-tools-09f5609618709da0ba10520c6ab6a3e2acac438b.zip
Remove legacy portal code
Diffstat (limited to 'packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx')
-rw-r--r--packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx73
1 files changed, 0 insertions, 73 deletions
diff --git a/packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx b/packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx
deleted file mode 100644
index 1dd164f8b..000000000
--- a/packages/website/ts/components/legacy_portal/legacy_portal_menu.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import * as _ from 'lodash';
-import * as React from 'react';
-import { MenuItem } from 'ts/components/ui/menu_item';
-import { WebsitePaths } from 'ts/types';
-
-export interface LegacyPortalMenuProps {
- menuItemStyle: React.CSSProperties;
- onClick?: () => void;
-}
-
-interface LegacyPortalMenuState {}
-
-export class LegacyPortalMenu extends React.Component<LegacyPortalMenuProps, LegacyPortalMenuState> {
- public static defaultProps: Partial<LegacyPortalMenuProps> = {
- onClick: _.noop,
- };
- public render(): React.ReactNode {
- return (
- <div>
- <MenuItem
- style={this.props.menuItemStyle}
- className="py2"
- to={`${WebsitePaths.Portal}`}
- onClick={this.props.onClick.bind(this)}
- >
- {this._renderMenuItemWithIcon('Generate order', 'zmdi-arrow-right-top')}
- </MenuItem>
- <MenuItem
- style={this.props.menuItemStyle}
- className="py2"
- to={`${WebsitePaths.Portal}/fill`}
- onClick={this.props.onClick.bind(this)}
- >
- {this._renderMenuItemWithIcon('Fill order', 'zmdi-arrow-left-bottom')}
- </MenuItem>
- <MenuItem
- style={this.props.menuItemStyle}
- className="py2"
- to={`${WebsitePaths.Portal}/balances`}
- onClick={this.props.onClick.bind(this)}
- >
- {this._renderMenuItemWithIcon('Balances', 'zmdi-balance-wallet')}
- </MenuItem>
- <MenuItem
- style={this.props.menuItemStyle}
- className="py2"
- to={`${WebsitePaths.Portal}/trades`}
- onClick={this.props.onClick.bind(this)}
- >
- {this._renderMenuItemWithIcon('Trade history', 'zmdi-format-list-bulleted')}
- </MenuItem>
- <MenuItem
- style={this.props.menuItemStyle}
- className="py2"
- to={`${WebsitePaths.Portal}/weth`}
- onClick={this.props.onClick.bind(this)}
- >
- {this._renderMenuItemWithIcon('Wrap ETH', 'zmdi-circle-o')}
- </MenuItem>
- </div>
- );
- }
- private _renderMenuItemWithIcon(title: string, iconName: string): React.ReactNode {
- return (
- <div className="flex" style={{ fontWeight: 100 }}>
- <div className="pr1 pl2">
- <i style={{ fontSize: 20 }} className={`zmdi ${iconName}`} />
- </div>
- <div className="pl1">{title}</div>
- </div>
- );
- }
-}