aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/portal_menu.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-22 20:00:41 +0800
committerFabio Berger <me@fabioberger.com>2018-03-22 20:00:41 +0800
commitbeb483ea85ca0df707e81883d612125be1968389 (patch)
tree9b9a043b2225cb980fa04d0be8a8040147a8b5df /packages/website/ts/components/portal_menu.tsx
parent46b7fecafe283e814e2088373ec857747e4cf314 (diff)
parent8478dc8d6d05efcdeac6653872f35149f3c9589c (diff)
downloaddexon-0x-contracts-beb483ea85ca0df707e81883d612125be1968389.tar.gz
dexon-0x-contracts-beb483ea85ca0df707e81883d612125be1968389.tar.zst
dexon-0x-contracts-beb483ea85ca0df707e81883d612125be1968389.zip
Merge branch 'development' into addExtraDocs
* development: Change blockchain prop to not optional Other style changes Updated padding and colors Refactor TokenState type Fix a bug causing fillOrdersUpTo validation to fail because of some extra orders being passed Implement initial wallet interface # Conflicts: # packages/react-shared/CHANGELOG.md # packages/website/ts/types.ts
Diffstat (limited to 'packages/website/ts/components/portal_menu.tsx')
-rw-r--r--packages/website/ts/components/portal_menu.tsx13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/website/ts/components/portal_menu.tsx b/packages/website/ts/components/portal_menu.tsx
index a2f9340c8..9ab611556 100644
--- a/packages/website/ts/components/portal_menu.tsx
+++ b/packages/website/ts/components/portal_menu.tsx
@@ -1,7 +1,8 @@
import * as _ from 'lodash';
import * as React from 'react';
import { MenuItem } from 'ts/components/ui/menu_item';
-import { WebsitePaths } from 'ts/types';
+import { Environments, WebsitePaths } from 'ts/types';
+import { configs } from 'ts/utils/configs';
export interface PortalMenuProps {
menuItemStyle: React.CSSProperties;
@@ -57,6 +58,16 @@ export class PortalMenu extends React.Component<PortalMenuProps, PortalMenuState
>
{this._renderMenuItemWithIcon('Wrap ETH', 'zmdi-circle-o')}
</MenuItem>
+ {configs.ENVIRONMENT === Environments.DEVELOPMENT && (
+ <MenuItem
+ style={this.props.menuItemStyle}
+ className="py2"
+ to={`${WebsitePaths.Portal}/wallet`}
+ onClick={this.props.onClick.bind(this)}
+ >
+ {this._renderMenuItemWithIcon('Wallet', 'zmdi-balance-wallet')}
+ </MenuItem>
+ )}
</div>
);
}