From 0f17f18e2a497ce7f3fcf80217971568a953cefa Mon Sep 17 00:00:00 2001 From: TZGyn Date: Tue, 6 Feb 2024 06:24:36 +0800 Subject: [PATCH] added toast on log out --- frontend/src/lib/components/UserIcon.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/lib/components/UserIcon.svelte b/frontend/src/lib/components/UserIcon.svelte index 9744c71..dfeb770 100644 --- a/frontend/src/lib/components/UserIcon.svelte +++ b/frontend/src/lib/components/UserIcon.svelte @@ -6,6 +6,7 @@ import { Loader2, User } from 'lucide-svelte' import { goto } from '$app/navigation' + import { toast } from 'svelte-sonner' export let email: string = '' export let onClick: () => void = () => {} @@ -19,6 +20,7 @@ isLoading = false dialogOpen = false + toast.success('Logged Out Successfully') goto('/login') }