feat: add report button to profiles

This commit is contained in:
Sam 2023-03-23 15:20:07 +01:00
parent a0bc39bcba
commit f02e64fca7
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
4 changed files with 73 additions and 1 deletions

View file

@ -10,6 +10,7 @@
import { PUBLIC_BASE_URL } from "$env/static/public";
import { userStore } from "$lib/store";
import renderMarkdown from "$lib/api/markdown";
import ReportButton from "../ReportButton.svelte";
export let data: PageData;
@ -86,6 +87,11 @@
</div>
{/each}
</div>
{#if $userStore && $userStore.id !== data.user.id}
<div class="row">
<ReportButton subject="member" reportUrl="/members/{data.id}/reports" />
</div>
{/if}
</div>
</div>