stax: add UI implementation

This commit is contained in:
Clement Bouvet
2023-02-21 11:01:18 +01:00
committed by Alexandre Paillier
parent b275067f47
commit be029c642d
20 changed files with 1298 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
#include <nbgl_page.h>
#include "shared_context.h"
#include "ui_callbacks.h"
#include "ui_nbgl.h"
static void ui_warning_contract_data_choice(bool confirm) {
if (confirm) {
ui_idle();
} else {
ui_menu_settings();
}
}
void ui_warning_contract_data(void) {
nbgl_useCaseChoice(&C_warning64px,
"This message cannot\nbe clear-signed",
"Enable blind-signing in\nthe settings to sign\nthis transaction.",
"Exit",
"Go to settings",
ui_warning_contract_data_choice);
}