Skip to content

Commit

Permalink
nbgl_useCaseAddressReview
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Jul 22, 2024
1 parent f6bbb4f commit 915419e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/ui/view_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static void review_configuration() {
nbgl_useCaseChoice(&C_Important_Circle_64px, viewdata.key, viewdata.value, "Accept", "Reject", confirm_setting);
}

static void review_address() {
static void config_useCaseAddressReview() {
nbgl_layoutTagValueList_t *extraPagesPtr = NULL;

uint8_t numItems = 0;
Expand Down Expand Up @@ -436,7 +436,12 @@ static void review_address() {
viewdata.value = viewdata.values[0];
h_review_update_data();

nbgl_useCaseAddressConfirmationExt(viewdata.value, action_callback, extraPagesPtr);
#if defined(CUSTOM_ADDRESS_TEXT)
const char ADDRESS_TEXT[] = CUSTOM_ADDRESS_TEXT;
#else
const char ADDRESS_TEXT[] = "Verify " MENU_MAIN_APP_LINE1 "\naddress";
#endif
nbgl_useCaseAddressReview(viewdata.value, &pairList, &C_icon_stax_64, ADDRESS_TEXT, NULL, action_callback);
}

static nbgl_layoutTagValue_t *update_item_callback(uint8_t index) {
Expand Down Expand Up @@ -494,12 +499,7 @@ void view_review_show_impl(unsigned int requireReply) {
cancel);
break;
case REVIEW_ADDRESS: {
#if defined(CUSTOM_ADDRESS_TEXT)
const char ADDRESS_TEXT[] = CUSTOM_ADDRESS_TEXT;
#else
const char ADDRESS_TEXT[] = "Verify " MENU_MAIN_APP_LINE1 "\naddress";
#endif
nbgl_useCaseReviewStart(&C_icon_stax_64, ADDRESS_TEXT, NULL, CANCEL_LABEL, review_address, cancel);
config_useCaseAddressReview();
break;
}
case REVIEW_TXN:
Expand Down

0 comments on commit 915419e

Please sign in to comment.