diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-25 06:32:12 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-25 06:32:12 +0800 |
commit | 88556d31e21e8858938788a0af7648e5bf7ae213 (patch) | |
tree | d9bec8b4e76c046707da93e3c0bcf74d0a49c3e1 /packages/website/ts/components/inputs | |
parent | c0d75c64767c36b2d08d5392d49f8f3994ba6f32 (diff) | |
download | dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.tar dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.tar.gz dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.tar.bz2 dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.tar.lz dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.tar.xz dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.tar.zst dexon-0x-contracts-88556d31e21e8858938788a0af7648e5bf7ae213.zip |
Add unlocking and locking token copy
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r-- | packages/website/ts/components/inputs/allowance_state_toggle.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/inputs/allowance_state_toggle.tsx b/packages/website/ts/components/inputs/allowance_state_toggle.tsx index 4f986dadc..a8f8f554f 100644 --- a/packages/website/ts/components/inputs/allowance_state_toggle.tsx +++ b/packages/website/ts/components/inputs/allowance_state_toggle.tsx @@ -89,12 +89,12 @@ export class AllowanceStateToggle extends React.Component<AllowanceStateTogglePr } private _getTooltipContent(): React.ReactNode { const symbol = this.props.token.symbol; + const isLockingToken = this.props.tokenState.allowance.gt(0); switch (this.state.allowanceState) { case AllowanceState.Loading: - // TODO: support both awaiting confirmation and awaiting transaction. return ( <Text noWrap={true} fontColor="white"> - Please confirm in MetaMask + {isLockingToken ? 'Locking' : 'Unlocking'} <b>{symbol}</b> </Text> ); case AllowanceState.Locked: |