refactor(notification): extract handleViewAll named function
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,12 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let { notifications, onMarkRead, onMarkAllRead, onClose }: Props = $props();
|
let { notifications, onMarkRead, onMarkAllRead, onClose }: Props = $props();
|
||||||
|
|
||||||
|
function handleViewAll(e: MouseEvent) {
|
||||||
|
e.preventDefault();
|
||||||
|
onClose();
|
||||||
|
goto('/aktivitaeten');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -130,7 +136,7 @@ let { notifications, onMarkRead, onMarkAllRead, onClose }: Props = $props();
|
|||||||
<div class="border-t border-line px-4 py-2">
|
<div class="border-t border-line px-4 py-2">
|
||||||
<a
|
<a
|
||||||
href="/aktivitaeten"
|
href="/aktivitaeten"
|
||||||
onclick={(e) => { e.preventDefault(); onClose(); goto('/aktivitaeten'); }}
|
onclick={handleViewAll}
|
||||||
class="text-xs font-medium text-ink-2 transition-colors hover:text-ink"
|
class="text-xs font-medium text-ink-2 transition-colors hover:text-ink"
|
||||||
>
|
>
|
||||||
{m.chronik_view_all()}
|
{m.chronik_view_all()}
|
||||||
|
|||||||
Reference in New Issue
Block a user