aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-25 06:32:12 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-25 06:32:12 +0800
commit88556d31e21e8858938788a0af7648e5bf7ae213 (patch)
treed9bec8b4e76c046707da93e3c0bcf74d0a49c3e1
parentc0d75c64767c36b2d08d5392d49f8f3994ba6f32 (diff)
downloaddexon-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.tsx4
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: