fix: make export key a subtle link, add view to VIEWS array

- Moved 'Export private key' from prominent button row to a small
  muted text link at the bottom of the address detail view
- Added 'export-privkey' to the VIEWS array in helpers.js — this was
  the cause of the blank view (showView toggled all known views but
  didn't know about export-privkey, so it was never unhidden)
This commit is contained in:
user
2026-02-28 01:37:45 -08:00
parent f6356dd447
commit 7a6bf3af9a
2 changed files with 8 additions and 10 deletions

View File

@@ -365,16 +365,6 @@
</button>
</div>
<!-- actions row 2 -->
<div class="flex gap-2 mb-3">
<button
id="btn-export-privkey"
class="border border-border px-2 py-1 hover:bg-fg hover:text-bg cursor-pointer flex-1 text-xs"
>
Export Private Key
</button>
</div>
<!-- transactions -->
<div class="mt-3">
<div class="border-b border-border pb-1 mb-1">
@@ -384,6 +374,13 @@
<div class="text-muted text-xs py-1">Loading...</div>
</div>
</div>
<div class="mt-3 text-center">
<span
id="btn-export-privkey"
class="text-xs text-muted underline decoration-dashed cursor-pointer hover:text-fg"
>Export private key</span
>
</div>
</div>
<!-- ============ EXPORT PRIVATE KEY VIEW ============ -->

View File

@@ -31,6 +31,7 @@ const VIEWS = [
"approve-site",
"approve-tx",
"approve-sign",
"export-privkey",
];
function $(id) {