From 8964ed814d9378f468c4948389022a566ac11b0b Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Thu, 27 Feb 2025 23:50:57 +0100 Subject: [PATCH] fixup! feat(eckahrt): implement show info UI trait function --- core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs b/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs index cd3e408eed..cafae2f03a 100644 --- a/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs +++ b/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs @@ -504,7 +504,7 @@ impl FirmwareUI for UIEckhart { fn show_info( title: TString<'static>, description: TString<'static>, - _button: TString<'static>, + button: TString<'static>, _time_ms: u32, ) -> Result, Error> { let content = Paragraphs::new(Paragraph::new(&theme::TEXT_REGULAR, description)) @@ -512,9 +512,7 @@ impl FirmwareUI for UIEckhart { let screen = TextScreen::new(content) .with_header(Header::new(title)) - .with_action_bar(ActionBar::new_single(Button::with_text( - TR::buttons__continue.into(), - ))); + .with_action_bar(ActionBar::new_single(Button::with_text(button))); let obj = LayoutObj::new(screen)?; Ok(obj) }