Skip to content

Commit

Permalink
Hide ADA symbol in the "Amount" field on send ADA form when handling …
Browse files Browse the repository at this point in the history
…tokens
  • Loading branch information
DavidTranDucVL committed Feb 25, 2021
1 parent 25b967f commit 5118a4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class ConfirmTransactionDialogClass extends Component<Props, {}> {
{sendAddress}
{txConfirmType === 'crossAccount' && <AddressVerification address={sendAddress} />}
</div>
{/* TODO: Hide ADA symbol when handling tokens */}
<div className="ada-label">Amount</div>
<div className="review-amount">{printAda(summary.amount)}</div>
</Fragment>
Expand Down Expand Up @@ -136,6 +137,7 @@ class ConfirmTransactionDialogClass extends Component<Props, {}> {
)}
<div className="ada-label">Fee</div>
<div className="review-fee">{printAda(summary.fee as Lovelace)}</div>
{/* TODO: Hide ADA symbol when handling tokens */}
<div className="ada-label">Total</div>
<div className="review-total">{printAda(total)}</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion app/frontend/components/pages/sendAda/sendAdaPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ class SendAdaPage extends Component<Props> {
searchPlaceholder={`Search from ${dropdownAssetItems.length} assets by name or hash`}
/>
<div className="send-values">
<label className="ada-label amount" htmlFor={`${isModal ? 'account' : ''}send-amount`}>
<label
className={`ada-label amount ${selectedAsset.isToken ? 'token' : ''}`}
htmlFor={`${isModal ? 'account' : ''}send-amount`}
>
Amount
</label>
<div className="input-wrapper">
Expand Down
2 changes: 1 addition & 1 deletion app/public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3479,7 +3479,7 @@ input:checked + .slider:before {
line-height: 32px;
}

.ada-label:not(.donation)::after {
.ada-label:not(.token)::after {
content: '';
position: absolute;
width: 9px;
Expand Down

0 comments on commit 5118a4b

Please sign in to comment.