Skip to content

Commit

Permalink
refactor: follow design specifications. (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored Jul 18, 2024
1 parent 88e0122 commit 008c2cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ui/nbgl_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static bool display_transaction_page(uint8_t page, nbgl_pageContent_t *content)

static void reject_tx_confirmation(void) {
ui_action_validate_transaction(false);
nbgl_useCaseStatus("Transaction\nRejected", false, ui_menu_main);
nbgl_useCaseReviewStatus(STATUS_TYPE_TRANSACTION_REJECTED, ui_menu_main);
}

static void reject_tx_choice(void) {
Expand All @@ -237,7 +237,7 @@ static void reject_tx_choice(void) {
static void review_tx_choice(bool confirm) {
if (confirm) {
ui_action_validate_transaction(true);
nbgl_useCaseStatus("TRANSACTION\nSIGNED", true, ui_menu_main);
nbgl_useCaseReviewStatus(STATUS_TYPE_TRANSACTION_SIGNED, ui_menu_main);
} else {
reject_tx_choice();
}
Expand All @@ -263,7 +263,7 @@ static void review_tx_start(void) {

static void reject_auth_confirmation(void) {
ui_action_validate_transaction(false);
nbgl_useCaseStatus("Soroban Auth\nRejected", false, ui_menu_main);
nbgl_useCaseStatus("Soroban Auth rejected", false, ui_menu_main);
}

static void reject_auth_choice(void) {
Expand All @@ -277,7 +277,7 @@ static void reject_auth_choice(void) {
static void review_auth_choice(bool confirm) {
if (confirm) {
ui_action_validate_transaction(true);
nbgl_useCaseStatus("SOROBAN AUTH\nSIGNED", true, ui_menu_main);
nbgl_useCaseStatus("Soroban Auth signed", true, ui_menu_main);
} else {
reject_auth_choice();
}
Expand Down

0 comments on commit 008c2cb

Please sign in to comment.