Updated to Svelte 5
This commit is contained in:
@@ -8,9 +8,13 @@ SPDX-License-Identifier: MPL-2.0
|
||||
import BrownButton from '$lib/components/buttons/brown.svelte';
|
||||
import GrayButton from '$lib/components/buttons/gray.svelte';
|
||||
|
||||
export let autoReturn = false;
|
||||
export let quiz_id: string;
|
||||
let mod_rating: number | undefined;
|
||||
interface Props {
|
||||
autoReturn?: boolean;
|
||||
quiz_id: string;
|
||||
}
|
||||
|
||||
let { autoReturn = false, quiz_id }: Props = $props();
|
||||
let mod_rating: number | undefined = $state();
|
||||
|
||||
const submit = async () => {
|
||||
const res = await fetch(`/api/v1/moderation/rating/set/${quiz_id}`, {
|
||||
|
||||
Reference in New Issue
Block a user