ui: refactor amount function
The `amount` function can call `amount_with_size` rather than repeating the underlying call to `render_amount`.
This commit is contained in:
parent
8fb74d1cf9
commit
013feb3909
@ -3,7 +3,7 @@ pub use bitcoin::Amount;
|
||||
use crate::{color, component::text::*, widget::*};
|
||||
|
||||
pub fn amount<'a, T: 'a>(a: &Amount) -> Row<'a, T> {
|
||||
render_amount(amount_as_string(*a), P1_SIZE)
|
||||
amount_with_size(a, P1_SIZE)
|
||||
}
|
||||
|
||||
pub fn amount_with_size<'a, T: 'a>(a: &Amount, size: u16) -> Row<'a, T> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user