diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-04-26 02:16:07 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-05-09 01:16:08 +0800 |
commit | a44874d2eb1dd9bf721c3d86f65c2e2078210049 (patch) | |
tree | 38065aa350eedafc4e305713b9150b3beda70b07 /packages/website/ts/components/wallet | |
parent | e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab (diff) | |
download | dexon-sol-tools-a44874d2eb1dd9bf721c3d86f65c2e2078210049.tar.gz dexon-sol-tools-a44874d2eb1dd9bf721c3d86f65c2e2078210049.tar.zst dexon-sol-tools-a44874d2eb1dd9bf721c3d86f65c2e2078210049.zip |
Add token flow
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index 057c712e5..068764027 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -55,6 +55,7 @@ export interface WalletProps { injectedProviderName: string; providerType: ProviderType; onToggleLedgerDialog: () => void; + onAddToken: () => void; } interface WalletState { @@ -232,7 +233,14 @@ export class Wallet extends React.Component<WalletProps, WalletState> { } private _renderFooterRows() { const primaryText = '+ other tokens'; - return <ListItem key={FOOTER_ITEM_KEY} primaryText={primaryText} innerDivStyle={styles.footerItemInnerDiv} />; + return ( + <ListItem + key={FOOTER_ITEM_KEY} + primaryText={primaryText} + innerDivStyle={styles.footerItemInnerDiv} + onClick={this.props.onAddToken} + /> + ); } private _renderEthRows() { const primaryText = this._renderAmount( |