From 1af16b6ca4d167713a16f11fca2b5868f7f73299 Mon Sep 17 00:00:00 2001 From: Tudor Morar Date: Tue, 26 Nov 2024 11:27:34 +0200 Subject: [PATCH 1/6] Ledger refactoring --- .../LedgerModalComponent.ts | 25 +++++--- .../components/renderInModal.ts | 2 +- .../ldegerModalComponent.styles.ts | 64 +++++++++++++++++++ 3 files changed, 82 insertions(+), 9 deletions(-) diff --git a/src/core/providers/helpers/ledger/components/LedgerModalComponent/LedgerModalComponent.ts b/src/core/providers/helpers/ledger/components/LedgerModalComponent/LedgerModalComponent.ts index 6953a10..aa4d6a2 100644 --- a/src/core/providers/helpers/ledger/components/LedgerModalComponent/LedgerModalComponent.ts +++ b/src/core/providers/helpers/ledger/components/LedgerModalComponent/LedgerModalComponent.ts @@ -43,7 +43,7 @@ export class LedgerModalComponent extends LitElement { }; @property({ type: Number }) private selectedIndex = 0; - @property({ type: Number }) private selectedAddress = ''; + @property({ type: String }) private selectedAddress = ''; static styles = ledgerStyles; @@ -105,19 +105,28 @@ export class LedgerModalComponent extends LitElement { onClose: () => this.close(), title: html`Confirm`, subtitle: html`Confirm Ledger Address`, - body: html`
-
+ body: html`
+
${confirmScreenData.confirmAddressText}
${confirmScreenData.selectedAddress}
-
-
${confirmScreenData?.authText}
-
${confirmScreenData?.data}
-
${confirmScreenData?.areShownText}
+
+
+ ${confirmScreenData?.authText} +
+
+ ${confirmScreenData?.data} +
+
+ ${confirmScreenData?.areShownText} +
-
+