mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-31 10:58:43 +00:00
feat(eckhart): show_group_share_success
This commit is contained in:
parent
60b453f4f0
commit
f5473bd325
@ -620,9 +620,24 @@ impl FirmwareUI for UIEckhart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn show_group_share_success(
|
fn show_group_share_success(
|
||||||
_lines: [TString<'static>; MAX_GROUP_SHARE_LINES],
|
lines: [TString<'static>; MAX_GROUP_SHARE_LINES],
|
||||||
) -> Result<impl LayoutMaybeTrace, Error> {
|
) -> Result<impl LayoutMaybeTrace, Error> {
|
||||||
Err::<RootComponent<Empty, ModelUI>, Error>(Error::ValueError(c"not implemented"))
|
let paragraphs = Paragraph::new(&theme::TEXT_REGULAR, lines[0])
|
||||||
|
.into_paragraphs()
|
||||||
|
.with_placement(LinearPlacement::vertical());
|
||||||
|
|
||||||
|
let layout = RootComponent::new(
|
||||||
|
TextScreen::new(paragraphs)
|
||||||
|
.with_header(
|
||||||
|
Header::new(TR::words__title_done.into())
|
||||||
|
.with_icon(theme::ICON_DONE, theme::GREEN_LIGHT)
|
||||||
|
.with_text_style(theme::label_title_confirm()),
|
||||||
|
)
|
||||||
|
.with_action_bar(ActionBar::new_single(Button::with_text(
|
||||||
|
TR::buttons__continue.into(),
|
||||||
|
))),
|
||||||
|
);
|
||||||
|
Ok(layout)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn show_homescreen(
|
fn show_homescreen(
|
||||||
|
@ -87,10 +87,10 @@ async def show_group_share_success(share_index: int, group_index: int) -> None:
|
|||||||
await raise_if_not_confirmed(
|
await raise_if_not_confirmed(
|
||||||
trezorui_api.show_group_share_success(
|
trezorui_api.show_group_share_success(
|
||||||
lines=[
|
lines=[
|
||||||
TR.recovery__you_have_entered,
|
f"{TR.recovery__you_have_entered} {TR.recovery__share_num_template.format(share_index + 1)} {TR.words__from} {TR.recovery__group_num_template.format(group_index + 1)}.",
|
||||||
TR.recovery__share_num_template.format(share_index + 1),
|
"",
|
||||||
TR.words__from,
|
"",
|
||||||
TR.recovery__group_num_template.format(group_index + 1),
|
"",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
"share_success",
|
"share_success",
|
||||||
|
Loading…
Reference in New Issue
Block a user