refactor: added typing for props, fixed overflow
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user