diff options
| author | Adam Soltys <[email protected]> | 2024-09-24 13:22:31 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-24 13:22:31 -0700 |
| commit | 8aeb0d6d818b823afec1ee7e5749971468842c9c (patch) | |
| tree | c9e131848e0903a7629372c3642c99cc8697512a /src/routes/(app)/account/seed | |
| parent | 52871e09d9218f3f2fb2ce4bd6e97f5c1fc15480 (diff) | |
| download | coinos-ui-8aeb0d6d818b823afec1ee7e5749971468842c9c.tar.gz coinos-ui-8aeb0d6d818b823afec1ee7e5749971468842c9c.zip | |
fix signing
Diffstat (limited to 'src/routes/(app)/account/seed')
| -rw-r--r-- | src/routes/(app)/account/seed/+page.svelte | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/routes/(app)/account/seed/+page.svelte b/src/routes/(app)/account/seed/+page.svelte index e922d6be..4e55534b 100644 --- a/src/routes/(app)/account/seed/+page.svelte +++ b/src/routes/(app)/account/seed/+page.svelte @@ -1,4 +1,5 @@ <script> + import Mnemonic from "$comp/Mnemonic.svelte"; import { browser } from "$app/environment"; import { tick, onMount } from "svelte"; import { copy } from "$lib/utils"; @@ -13,7 +14,7 @@ onMount(async () => { if (!browser) return; - await generate(); + if (!$mnemonic) await generate(); }); let generate = async () => { @@ -22,20 +23,13 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl font-semibold">Seed phrase</h1> + <h1 class="text-center text-3xl font-semibold"> + {$t("accounts.seedPhrase")} + </h1> <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"> {#if $mnemonic} - <div - class="text-lg border p-4 rounded-2xl text-secondary grid grid-cols-3 gap-2 justify-center" - > - {#each $mnemonic.split(" ") as w, i} - <div> - <span class="select-none text-sm text-black">{i + 1}.</span> - <span>{@html w === "-" ? "—" : w}</span> - </div> - {/each} - </div> + <Mnemonic mnemonic={$mnemonic} /> {/if} <div> @@ -45,7 +39,7 @@ on:click={generate} > <Icon icon="random" style="w-8 my-auto" /> - <div class="my-auto">Regenerate</div> + <div class="my-auto">{$t("accounts.regenerate")}</div> </button> <button @@ -64,9 +58,9 @@ <a href={`/account/savings`} class="contents"> <button type="button" - class="bg-black text-white w-full px-5 py-6 text-xl rounded-2xl font-bold" + class="bg-primary w-full px-5 py-6 text-xl rounded-2xl font-bold" > - Back + {$t("accounts.back")} </button> </a> <a href={`/account/pass`} class="contents"> @@ -74,7 +68,7 @@ type="button" class="bg-black text-white w-full px-5 py-6 text-xl rounded-2xl font-bold" > - Next + {$t("accounts.next")} </button> </a> </div> |
