Skip to content

Commit

Permalink
added crypto denomination to amount field (#4582)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbyrne authored Jan 29, 2025
1 parent 9ad44ee commit 9aa2fa5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
} from "@solana/spl-token";

import Icon from '@brave/leo/react/icon';
import Input from '@brave/leo/react/input';
import Select, { components } from 'react-select';
import Dialog from '@brave/leo/react/dialog';
import Button from '@brave/leo/react/button';
Expand Down Expand Up @@ -548,12 +549,15 @@ export default function CryptoPaymentWidget({title, cryptoAddresses, cryptoConst
)
})}
<input
type="number"
inputmode='numeric'
type='number'
min={0}
onChange={handleInputChange}
className={`${currentAmount === customAmount ? styles['selected'] : ''} ${displayCrypto ? styles['amount-full-width'] : ''} ${styles['amount-input']}`}
placeholder={placeholder}
value={customAmount}
/>
<span className={`${styles['amount-input-denomination']}`}>{displayCrypto && displayChain}</span>
</div>
<div className="col-span-12 md:col-span-5 text-right align-top">
<h2 className={`${styles['large-currency-display']}`}>
Expand Down
9 changes: 9 additions & 0 deletions nextjs/src/styles/PublicChannelPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,15 @@
border-radius: 8px;
}

.amount-input-denomination {
position: relative;
top: -35px;
font-size: 13px;
color: rgb(63 72 85);
float: right;
padding-right: 15px;
}

.success-wrapper {
width: 520px;
height: 542px;
Expand Down

0 comments on commit 9aa2fa5

Please sign in to comment.