Skip to content

Commit

Permalink
Persistent Max button
Browse files Browse the repository at this point in the history
  • Loading branch information
kirksgithub committed Oct 16, 2023
1 parent eb273d8 commit 131eae6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/DepositTokensButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ export const DepositTokensButton = ({
<h2>Deposit tokens</h2>
<label>
Amount to deposit
{amount && humanReadableMax && parseInt(amount) < humanReadableMax && (
<span>
&nbsp;-&nbsp;<a href="#" onClick={() => { setAmount(humanReadableMax ? humanReadableMax.toString() : '') }}>Max</a>
</span>)}
<span>
&nbsp;-&nbsp;<a href="#" onClick={() => { setAmount(humanReadableMax ? humanReadableMax.toString() : '') }}>Max</a>
</span>)
</label>
<Input
placeholder={humanReadableMax?.toString() + ' (max)'}
Expand Down

0 comments on commit 131eae6

Please sign in to comment.