refactor: added typing for props, fixed overflow

This commit is contained in:
Barf-Vader
2025-06-11 00:03:29 +01:00
parent 4d8cffc726
commit bdda39c7fe
3 changed files with 14 additions and 6 deletions

View File

@@ -3,8 +3,16 @@
import crossUrl from "$lib/assets/cross.svg";
import Textarea from "./inputs/Textarea.svelte";
import type { Table } from "$lib";
import type { SupabaseClient } from "@supabase/supabase-js";
import type { Database } from "$lib/database.d.ts";
const { data, studySpaceId, hideFunc } = $props();
interface Props {
data: { supabase: SupabaseClient<Database> };
studySpaceId: string;
hideFunc: () => void;
}
const { data, studySpaceId, hideFunc }: Props = $props();
const { supabase } = $derived(data);
let uploading = $state(false);