diff --git a/src/lib/components/UserIcon.svelte b/src/lib/components/UserIcon.svelte index af1e72e..0446c67 100644 --- a/src/lib/components/UserIcon.svelte +++ b/src/lib/components/UserIcon.svelte @@ -8,6 +8,7 @@ import { goto } from '$app/navigation' export let email: string = '' + export let onClick: () => void = () => {} let dialogOpen = false let isLoading = false @@ -33,7 +34,11 @@ {email} - goto('/profile')}> + { + goto('/profile') + onClick() + }}> Profile diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 534e04b..d42c6bc 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -19,7 +19,8 @@