diff options
Diffstat (limited to 'src/components/WalletPass.svelte')
| -rw-r--r-- | src/components/WalletPass.svelte | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/WalletPass.svelte b/src/components/WalletPass.svelte index 052f9fd0..a3f00994 100644 --- a/src/components/WalletPass.svelte +++ b/src/components/WalletPass.svelte @@ -1,4 +1,6 @@ <script lang="ts"> + import PhEyeBold from "virtual:icons/ph/eye-bold"; + import PhEyeSlashBold from "virtual:icons/ph/eye-slash-bold"; import { preventDefault } from "svelte/legacy"; import { focus } from "$lib/utils"; @@ -55,11 +57,11 @@ class="absolute right-5 top-1/2" aria-label={revealPassword ? "Hide password" : "Show password"} > - <iconify-icon - noobserver - icon={revealPassword ? "ph:eye-bold" : "ph:eye-slash-bold"} - width="32" - ></iconify-icon> + {#if revealPassword} + <PhEyeBold width="32" /> + {:else} + <PhEyeSlashBold width="32" /> + {/if} </button> </div> <div class="mb-5 space-y-2"> |
