make reported user nullable
All checks were successful
delpoy / build-and-deploy (push) Successful in 44s

This commit is contained in:
2023-11-03 18:10:02 +01:00
parent 72eeb59230
commit 81d97380ca
11 changed files with 107 additions and 65 deletions

View File

@ -5,7 +5,8 @@
import { page } from '$app/stores';
import { createEventDispatcher } from 'svelte';
export let reportedName: string;
export let reporterName: string;
export let reportedName: string | null;
export let reason: string;
let body: string;
@ -25,7 +26,10 @@
</script>
<div>
<h2 class="text-3xl text-center">Report für <code>{reportedName}</code></h2>
<h2 class="text-3xl text-center">
Report von <span class="underline">{reporterName}</span> gegen
<span class="underline">{reportedName || 'unbekannt'}</span>
</h2>
<form on:submit|preventDefault={() => submitModal.show()}>
<div class="space-y-4 my-4">
<div>