mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-07 15:18:08 +00:00
fixup! refactor(core/rust) use TString in Label and Button
This commit is contained in:
parent
7486a5c915
commit
7defafc9d7
@ -90,9 +90,9 @@ where
|
|||||||
right: Option<TString<'static>>,
|
right: Option<TString<'static>>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let cancel = match left {
|
let cancel = match left {
|
||||||
Some(verb) => match verb {
|
Some(verb) => match verb.map(|s| s) {
|
||||||
TString::Str("^") => Button::with_icon(theme::ICON_UP),
|
"^" => Button::with_icon(theme::ICON_UP),
|
||||||
TString::Str("<") => Button::with_icon(theme::ICON_BACK),
|
"<" => Button::with_icon(theme::ICON_BACK),
|
||||||
_ => Button::with_text(verb),
|
_ => Button::with_text(verb),
|
||||||
},
|
},
|
||||||
_ => Button::with_icon(theme::ICON_CANCEL),
|
_ => Button::with_icon(theme::ICON_CANCEL),
|
||||||
|
Loading…
Reference in New Issue
Block a user