refactor(notification): extract handleViewAll named function

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-12 11:24:58 +02:00
committed by marcel
parent 53ecfee25e
commit 37026bbbb8

View File

@@ -12,6 +12,12 @@ type Props = {
};
let { notifications, onMarkRead, onMarkAllRead, onClose }: Props = $props();
function handleViewAll(e: MouseEvent) {
e.preventDefault();
onClose();
goto('/aktivitaeten');
}
</script>
<div
@@ -130,7 +136,7 @@ let { notifications, onMarkRead, onMarkAllRead, onClose }: Props = $props();
<div class="border-t border-line px-4 py-2">
<a
href="/aktivitaeten"
onclick={(e) => { e.preventDefault(); onClose(); goto('/aktivitaeten'); }}
onclick={handleViewAll}
class="text-xs font-medium text-ink-2 transition-colors hover:text-ink"
>
{m.chronik_view_all()}