From 013d8b5c5db7579396db104b42569d68e2589039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Kljaji=C4=87?= <64456143+matijakljajic@users.noreply.github.com> Date: Tue, 31 Dec 2024 02:13:29 +0100 Subject: [PATCH] feat: show/hide pass --- src/routes/admin/register/+page.svelte | 28 +++++++++++++++++++++++++- src/routes/login/+page.svelte | 28 +++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/src/routes/admin/register/+page.svelte b/src/routes/admin/register/+page.svelte index 4253570..7db3019 100644 --- a/src/routes/admin/register/+page.svelte +++ b/src/routes/admin/register/+page.svelte @@ -7,6 +7,9 @@ import { zodClient } from 'sveltekit-superforms/adapters'; import { formSchema } from './schema'; import { page } from '$app/stores'; + import { Button } from '$lib/components/ui/button'; + import Visible from 'lucide-svelte/icons/eye'; + import Invisible from 'lucide-svelte/icons/eye-closed'; let { data, form: actionData } = $props(); @@ -24,6 +27,7 @@ }); const { form: formData, enhance } = form; + let showPassword = $state(false);