mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-19 16:49:02 +00:00
fixup! feat(eckhart): add FIDO2 support FidoCredential component, confirm_fido flow and icons
This commit is contained in:
parent
eaf0e2a01d
commit
71ddb0f59b
@ -1,3 +1,4 @@
|
||||
#[cfg(feature = "universal_fw")]
|
||||
pub mod confirm_fido;
|
||||
pub mod confirm_output;
|
||||
pub mod confirm_reset;
|
||||
@ -10,6 +11,7 @@ pub mod request_passphrase;
|
||||
pub mod show_danger;
|
||||
pub mod show_share_words;
|
||||
|
||||
#[cfg(feature = "universal_fw")]
|
||||
pub use confirm_fido::new_confirm_fido;
|
||||
pub use confirm_output::new_confirm_output;
|
||||
pub use confirm_reset::new_confirm_reset;
|
||||
|
@ -1,5 +1,3 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import trezorui_api
|
||||
from trezor import ui
|
||||
from trezor.enums import ButtonRequestType
|
||||
@ -7,9 +5,6 @@ from trezor.ui.layouts import show_error_and_raise
|
||||
|
||||
from ..common import interact
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import NoReturn
|
||||
|
||||
|
||||
async def confirm_fido(
|
||||
header: str,
|
||||
@ -50,7 +45,7 @@ async def confirm_fido_reset() -> bool:
|
||||
return (await ui.Layout(confirm).get_result()) is trezorui_api.CONFIRMED
|
||||
|
||||
|
||||
async def credential_warning(br_name: str, content: str) -> NoReturn:
|
||||
async def credential_warning(br_name: str, content: str) -> None:
|
||||
await show_error_and_raise(
|
||||
br_name=br_name,
|
||||
content=content,
|
||||
|
Loading…
Reference in New Issue
Block a user