Files
app-ethereum/src_bagl/ui_flow_712.c

58 lines
963 B
C
Raw Normal View History

#ifdef HAVE_EIP712_FULL_SUPPORT
2022-05-12 17:29:35 +02:00
#include "ui_flow_712.h"
#include "ui_logic.h"
2022-07-19 11:49:18 +02:00
#include "shared_context.h" // strings
2022-05-12 17:29:35 +02:00
// clang-format off
UX_STEP_NOCB(
ux_712_step_review,
pnn,
{
&C_icon_eye,
"Review",
"typed message",
});
UX_STEP_NOCB(
ux_712_step_dynamic,
bnnn_paging,
{
.title = strings.tmp.tmp2,
.text = strings.tmp.tmp,
}
);
UX_STEP_INIT(
ux_712_step_dummy,
NULL,
NULL,
{
ui_712_next_field();
}
);
UX_STEP_CB(
ux_712_step_approve,
pb,
2022-05-12 17:30:26 +02:00
ui_712_approve(NULL),
2022-05-12 17:29:35 +02:00
{
&C_icon_validate_14,
"Approve",
});
UX_STEP_CB(
ux_712_step_reject,
pb,
2022-05-12 17:30:26 +02:00
ui_712_reject(NULL),
2022-05-12 17:29:35 +02:00
{
&C_icon_crossmark,
"Reject",
});
// clang-format on
UX_FLOW(ux_712_flow,
&ux_712_step_review,
&ux_712_step_dynamic,
&ux_712_step_dummy,
&ux_712_step_approve,
&ux_712_step_reject);
2022-07-19 11:49:18 +02:00
#endif // HAVE_EIP712_FULL_SUPPORT