Skip to content

Commit

Permalink
send: disable input box if prefill amount is present
Browse files Browse the repository at this point in the history
  • Loading branch information
polymorpher committed Aug 30, 2021
1 parent 207a829 commit 925ab90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/client/src/pages/Show/Send.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const Send = ({
</Space>
<Space align='baseline' size='large'>
<Label><Hint>Amount</Hint></Label>
<InputBox margin='auto' width={200} value={inputAmount} onChange={({ target: { value } }) => setInputAmount(value)} />
<InputBox margin='auto' width={200} value={inputAmount} onChange={({ target: { value } }) => setInputAmount(value)} disabled={!!prefillAmount} />
{!isNFT && <Hint>{selectedToken.symbol}</Hint>}
<Button type='secondary' shape='round' onClick={useMaxAmount}>max</Button>
</Space>
Expand Down

0 comments on commit 925ab90

Please sign in to comment.