mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-28 15:22:14 +00:00
fixup! feat(eckahrt): implement show info UI trait function
This commit is contained in:
parent
83e70dd1ce
commit
8964ed814d
@ -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<Gc<LayoutObj>, 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user