From 7defafc9d7b1fc3fcb70b491929e01b85e21a353 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 26 Mar 2024 22:46:43 +0100 Subject: [PATCH] fixup! refactor(core/rust) use TString in Label and Button --- core/embed/rust/src/ui/model_tt/component/page.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/embed/rust/src/ui/model_tt/component/page.rs b/core/embed/rust/src/ui/model_tt/component/page.rs index 1603e499d..4cb636441 100644 --- a/core/embed/rust/src/ui/model_tt/component/page.rs +++ b/core/embed/rust/src/ui/model_tt/component/page.rs @@ -90,9 +90,9 @@ where right: Option>, ) -> Self { let cancel = match left { - Some(verb) => match verb { - TString::Str("^") => Button::with_icon(theme::ICON_UP), - TString::Str("<") => Button::with_icon(theme::ICON_BACK), + Some(verb) => match verb.map(|s| s) { + "^" => Button::with_icon(theme::ICON_UP), + "<" => Button::with_icon(theme::ICON_BACK), _ => Button::with_text(verb), }, _ => Button::with_icon(theme::ICON_CANCEL),