diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-21 01:44:59 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-21 01:44:59 +0800 |
commit | 0f8e6b395eb2260bbb03da9de35505a7a91c5c7b (patch) | |
tree | 8c7974d2259d008f826252b00fb992323dc137e8 /packages/website/ts/components/wallet | |
parent | b28cc6d7d300d209bee0091369a8e221eaeb4e64 (diff) | |
download | dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.tar dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.tar.gz dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.tar.bz2 dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.tar.lz dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.tar.xz dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.tar.zst dexon-0x-contracts-0f8e6b395eb2260bbb03da9de35505a7a91c5c7b.zip |
WIP for allowance toggle redesign working
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index 32c56ef14..2cba993c4 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -28,7 +28,6 @@ import { NullTokenRow } from 'ts/components/wallet/null_token_row'; import { PlaceHolder } from 'ts/components/wallet/placeholder'; import { StandardIconRow } from 'ts/components/wallet/standard_icon_row'; import { WrapEtherItem } from 'ts/components/wallet/wrap_ether_item'; -import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; import { AllowanceStateToggle } from 'ts/containers/inputs/allowance_state_toggle'; import { Dispatcher } from 'ts/redux/dispatcher'; import { colors } from 'ts/style/colors'; @@ -422,7 +421,14 @@ export class Wallet extends React.Component<WalletProps, WalletState> { // refetchTokenStateAsync={async () => this.props.refetchTokenStateAsync(config.token.address)} // /> // ); - return <AllowanceStateToggle token={config.token} tokenState={config.tokenState} />; + return ( + <AllowanceStateToggle + blockchain={this.props.blockchain} + token={config.token} + tokenState={config.tokenState} + refetchTokenStateAsync={async () => this.props.refetchTokenStateAsync(config.token.address)} + /> + ); } private _renderAmount( amount: BigNumber, |