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 | |
parent | c0d75c64767c36b2d08d5392d49f8f3994ba6f32 (diff) | |
download | dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.tar dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.tar.gz dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.tar.bz2 dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.tar.lz dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.tar.xz dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.tar.zst dexon-sol-tools-88556d31e21e8858938788a0af7648e5bf7ae213.zip |
Add unlocking and locking token copy
-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: |