Unified nbgl layoutTagValue variable naming

This commit is contained in:
Alexandre Paillier
2023-04-07 11:29:27 +02:00
parent cb7334ceed
commit e0bb1225fe
7 changed files with 66 additions and 66 deletions

View File

@@ -4,7 +4,7 @@
#include "nbgl_use_case.h"
#include "network.h"
static nbgl_layoutTagValue_t tlv[2];
static nbgl_layoutTagValue_t pairs[2];
static char *review_string;
static void reviewReject(void) {
@@ -25,14 +25,14 @@ static void reviewChoice(bool confirm) {
static bool displayTransactionPage(uint8_t page, nbgl_pageContent_t *content) {
if (page == 0) {
tlv[0].item = "Address";
tlv[0].value = strings.common.fullAddress;
tlv[1].item = "Key";
tlv[1].value = strings.common.fullAmount;
pairs[0].item = "Address";
pairs[0].value = strings.common.fullAddress;
pairs[1].item = "Key";
pairs[1].value = strings.common.fullAmount;
content->type = TAG_VALUE_LIST;
content->tagValueList.nbPairs = 2;
content->tagValueList.pairs = (nbgl_layoutTagValue_t *) tlv;
content->tagValueList.pairs = (nbgl_layoutTagValue_t *) pairs;
} else if (page == 1) {
content->type = INFO_LONG_PRESS, content->infoLongPress.icon = get_app_icon(true);
content->infoLongPress.text = review_string;