Skip to content

Commit

Permalink
gui(transactions): split strings across multiple lines
Browse files Browse the repository at this point in the history
This is easier to read and ensures `cargo fmt` works.
  • Loading branch information
jp1ac4 committed Jan 31, 2024
1 parent bc7f2e3 commit c50954e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gui/src/app/view/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,14 @@ pub fn create_rbf_modal<'a>(
confirm_button.on_press(Message::CreateRbf(super::CreateRbfMessage::Confirm));
}
let help_text = if is_cancel {
"Replace the transaction with one paying a higher feerate that sends the coins back to us. There is no guarantee the original transaction won't get mined first. New inputs may be used for the replacement transaction."
"Replace the transaction with one paying a higher feerate \
that sends the coins back to us. There is no guarantee the \
original transaction won't get mined first. New inputs may \
be used for the replacement transaction."
} else {
"Replace the transaction with one paying a higher feerate to incentivize faster confirmation. New inputs may be used for the replacement transaction."
"Replace the transaction with one paying a higher feerate \
to incentivize faster confirmation. New inputs may be used \
for the replacement transaction."
};
card::simple(
Column::new()
Expand All @@ -188,7 +193,8 @@ pub fn create_rbf_modal<'a>(
Message::CreateRbf(CreateRbfMessage::FeerateEdited(msg))
})
.warning(
"Feerate must be greater than previous value and less than or equal to 1000 sats/vbyte",
"Feerate must be greater than previous value and \
less than or equal to 1000 sats/vbyte",
)
.size(20)
.padding(10),
Expand Down

0 comments on commit c50954e

Please sign in to comment.