fix: pass style check
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { daysOfWeek } from "$lib";
|
import { daysOfWeek } from "$lib";
|
||||||
import Button from "../Button.svelte";
|
|
||||||
import CrossUrl from "../../assets/cross.svg";
|
import CrossUrl from "../../assets/cross.svg";
|
||||||
interface Props {
|
interface Props {
|
||||||
index: number;
|
index: number;
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { gmapsLoader, daysOfWeek, formatTime, type Table } from "$lib";
|
import { gmapsLoader, daysOfWeek, formatTime, type Table } from "$lib";
|
||||||
import Button from "$lib/components/Button.svelte";
|
import Button from "$lib/components/Button.svelte";
|
||||||
import TagFilter from "$lib/components/inputs/TagFilter.svelte";
|
|
||||||
|
|
||||||
const { data } = $props();
|
const { data } = $props();
|
||||||
const { space, supabase, adminMode } = $derived(data);
|
const { space, supabase, adminMode } = $derived(data);
|
||||||
@@ -109,7 +108,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<hr />
|
<hr />
|
||||||
<div class="subtitle">Opening Times:</div>
|
<div class="subtitle">Opening Times:</div>
|
||||||
{#each Array(7) as _, idx (idx)}
|
{#each Array(7).keys() as idx (idx)}
|
||||||
{@const entries = timingsPerDay[idx]}
|
{@const entries = timingsPerDay[idx]}
|
||||||
<div class="opening-entry">
|
<div class="opening-entry">
|
||||||
<span class="day">{daysOfWeek[idx]}</span>
|
<span class="day">{daysOfWeek[idx]}</span>
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
if (!spaceImgs || spaceImgs.length < 1) return alert("Please select an image file.");
|
if (!spaceImgs || spaceImgs.length < 1) return alert("Please select an image file.");
|
||||||
if (!studySpaceData.building_location) return alert("Please select a building location.");
|
if (!studySpaceData.building_location) return alert("Please select a building location.");
|
||||||
|
|
||||||
const { opening_times, ...spacePayload } = studySpaceData;
|
const { ...spacePayload } = studySpaceData;
|
||||||
|
|
||||||
const { data: studySpaceInsert, error: studySpaceError } = await supabase
|
const { data: studySpaceInsert, error: studySpaceError } = await supabase
|
||||||
.from("study_spaces")
|
.from("study_spaces")
|
||||||
|
|||||||
Reference in New Issue
Block a user