Skip to content

Commit

Permalink
add to address row to TxDetail header
Browse files Browse the repository at this point in the history
  • Loading branch information
bgptr committed Oct 18, 2019
1 parent a8586f8 commit 22a1eb4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
16 changes: 14 additions & 2 deletions app/components/views/TxDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const TxDetails = ({
<div className="txdetails-top">
<div className="txdetails-top-row">
<div className="txdetails-name">
<T id="txDetails.transactionLabel" m="Transaction" />
<T id="txDetails.transactionLabel" m="Transaction" />:
</div>
<div className="txdetails-value">
<a onClick={ openTxUrl } style={{ cursor: "pointer" }}>{txHash}</a>
Expand All @@ -176,9 +176,21 @@ const TxDetails = ({
}
</div>
</div>
{txDirection === "out" && txType !== "Vote" &&
<div className="txdetails-top-row">
<div className="txdetails-name"><T id="txDetails.toAddress" m="To address" />:</div>
<div className="txdetails-value non-flex">
{txOutputs.map(({ address }) => (
<div>{addSpacingAroundText(address)}</div>
))}
{nonWalletOutputs.map(({ address }) => (
<div>{addSpacingAroundText(address)}</div>
))}
</div>
</div>}
{txDirection !== "in" && txType !== "Vote" &&
<div className="txdetails-top-row">
<div className="txdetails-name"><T id="txDetails.transactionFeeLabel" m="Transaction fee" /></div>
<div className="txdetails-name"><T id="txDetails.transactionFeeLabel" m="Transaction fee" />:</div>
<div className="txdetails-value"><Balance amount={txFee} /></div>
</div> }
</div>
Expand Down
1 change: 1 addition & 0 deletions app/i18n/translations/original.json
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@
"txDetails.ticketCost": "Ticket Cost",
"txDetails.timestamp": "{timestamp, date, medium} {timestamp, time, medium}",
"txDetails.transactionFeeLabel": "Transaction fee",
"txDetails.toAddress": "To address",
"txDetails.transactionLabel": "Transaction",
"txDetails.type.coinbase": "Coinbase",
"txDetails.type.revoke": "Revoke",
Expand Down
6 changes: 5 additions & 1 deletion app/style/TxDetails.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
.txdetails-top {
padding-left: 80px;
padding-top: 25px;
padding-bottom: 33px;
padding-bottom: 28px;
font-size: 13px;
background-color: var(--txdetails-top-bg);
}
Expand All @@ -73,6 +73,10 @@
.txdetails-value {
word-wrap: break-word;
display: flex;

&.non-flex {
display: block;
}
}

.txdetails-value-rawtx {
Expand Down

0 comments on commit 22a1eb4

Please sign in to comment.