view: 'self send' -> 'send-to-self'

This commit is contained in:
Antoine Poinsot 2023-05-07 12:32:57 +02:00
parent 43b207a4f5
commit 139273b87f
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304
4 changed files with 5 additions and 5 deletions

View File

@ -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("Self send"))
Container::new(h1("Send-to-self"))
} else {
Container::new(amount_with_size(&tx.spend_amount, H1_SIZE))
})

View File

@ -136,7 +136,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("Self send"))
Container::new(p1_regular("Send-to-self"))
})
.push(amount_with_size(&tx.fee_amount, P2_SIZE))
.width(Length::Shrink),

View File

@ -99,7 +99,7 @@ pub fn create_spend_tx<'a>(
cache,
error,
Column::new()
.push(h3(if is_self_send { "Self send" } else { "Send" }))
.push(h3(if is_self_send { "Send-to-self" } else { "Send" }))
.push(
Column::new()
.push(Column::with_children(recipients).spacing(10))

View File

@ -124,7 +124,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("Self send"))
Row::new().push(text("Send-to-self"))
})
.align_items(Alignment::Center)
.spacing(20),
@ -158,7 +158,7 @@ pub fn tx_view<'a>(
Column::new().spacing(20).push(
Column::new()
.push(if tx.is_self_send() {
Container::new(h1("Self send"))
Container::new(h1("Send-to-self"))
} else if tx.is_external() {
Container::new(amount_with_size(&tx.incoming_amount, H1_SIZE))
} else {