Skip to content

Commit

Permalink
Merge #527: minor wording fix
Browse files Browse the repository at this point in the history
506f97d minor wording fix (pythcoiner)

Pull request description:

  following #508

ACKs for top commit:
  darosior:
    ACK 506f97d

Tree-SHA512: 5e511e8ebe1ec346dfdf70759f15e2548e78323efafe0ba97a15a8195e52dd6dde490c4320f8a42b533d3772e5f83f8fa9c9edba9dcb8012cb96b319507a3072
  • Loading branch information
darosior committed May 14, 2023
2 parents 2644a47 + 506f97d commit 0406085
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gui/src/app/view/psbt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub fn spend_header<'a>(tx: &SpendTx) -> Element<'a, Message> {
.push(
Column::new()
.push(if tx.is_self_send() {
Container::new(h1("Send-to-self"))
Container::new(h1("Self-transfer"))
} else {
Container::new(amount_with_size(&tx.spend_amount, H1_SIZE))
})
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/view/psbts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fn spend_tx_list_view<'a>(i: usize, tx: &SpendTx) -> Element<'a, Message> {
.push(if !tx.is_self_send() {
Container::new(amount(&tx.spend_amount))
} else {
Container::new(p1_regular("Send-to-self"))
Container::new(p1_regular("Self-transfer"))
})
.push(amount_with_size(&tx.fee_amount, P2_SIZE))
.width(Length::Shrink),
Expand Down
6 changes: 5 additions & 1 deletion gui/src/app/view/spend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ pub fn create_spend_tx<'a>(
cache,
error,
Column::new()
.push(h3(if is_self_send { "Send-to-self" } else { "Send" }))
.push(h3(if is_self_send {
"Self-transfer"
} else {
"Send"
}))
.push(
Column::new()
.push(Column::with_children(recipients).spacing(10))
Expand Down
4 changes: 2 additions & 2 deletions gui/src/app/view/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn tx_list_view<'a>(i: usize, tx: &HistoryTransaction) -> Element<'a, Message> {
.push(amount(&tx.outgoing_amount))
.align_items(Alignment::Center)
} else {
Row::new().push(text("Send-to-self"))
Row::new().push(text("Self-transfer"))
})
.align_items(Alignment::Center)
.spacing(20),
Expand Down Expand Up @@ -160,7 +160,7 @@ pub fn tx_view<'a>(
Column::new().spacing(20).push(
Column::new()
.push(if tx.is_self_send() {
Container::new(h1("Send-to-self"))
Container::new(h1("Self-transfer"))
} else if tx.is_external() {
Container::new(amount_with_size(&tx.incoming_amount, H1_SIZE))
} else {
Expand Down

0 comments on commit 0406085

Please sign in to comment.