Add in-app notitications
This commit is contained in:
parent
67d461333c
commit
8695d3e40e
10 changed files with 537 additions and 55 deletions
|
|
@ -20,9 +20,12 @@
|
|||
UserPostPage,
|
||||
} from "$lib/forum/userPosts";
|
||||
import Meta from "$lib/components/Meta.svelte";
|
||||
import Notifications from "$lib/components/Notifications.svelte";
|
||||
import { auth } from "$lib/auth.svelte";
|
||||
import { summarize } from "$lib/seo";
|
||||
|
||||
const pubkey = $derived<string | null>(page.data.pubkey ?? null);
|
||||
const isOwn = $derived(!!pubkey && auth.user?.pubkey === pubkey);
|
||||
|
||||
$effect(() => {
|
||||
if (!pubkey) return;
|
||||
|
|
@ -240,6 +243,10 @@
|
|||
{/if}
|
||||
</div>
|
||||
|
||||
{#if isOwn}
|
||||
<Notifications />
|
||||
{/if}
|
||||
|
||||
<div class="mt-10 grid gap-10 md:grid-cols-2 md:gap-8">
|
||||
<section aria-labelledby="profile-discussions">
|
||||
<h2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue