refactor: Fixed minor typing issue with space

This commit is contained in:
Barf-Vader
2025-06-09 19:26:57 +01:00
parent 61915cd6a6
commit 6a9f5ca21d
2 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
<script lang="ts">
const { space } = $props();
import type { Table } from "$lib";
interface Props {
space: Table<"study_spaces">;
}
const { space }: Props = $props();
const tagToColor: Record<string, string> = {
"Many Outlets": "compulsoryTagGreen",

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import CompulsoryTags from "./CompulsoryTags.svelte";
import type { Table } from "$lib";
interface Props {
@@ -9,7 +10,6 @@
}
const { space, alt, imgSrc, href }: Props = $props();
import CompulsoryTags from "./CompulsoryTags.svelte";
</script>
<a class="card" {href}>