diff --git a/src/lib/components/Feedback.svelte b/src/lib/components/Feedback.svelte index e053b48..0504d1f 100644 --- a/src/lib/components/Feedback.svelte +++ b/src/lib/components/Feedback.svelte @@ -26,6 +26,7 @@ const { error: feedbackUpload } = await supabase .from("study_spaces") .update({ + directions: newStudySpaceData.directions, volume: newStudySpaceData.volume, wifi: newStudySpaceData.wifi, power: newStudySpaceData.power, diff --git a/src/lib/database.d.ts b/src/lib/database.d.ts index 64842ee..90386f3 100644 --- a/src/lib/database.d.ts +++ b/src/lib/database.d.ts @@ -145,6 +145,7 @@ export type Database = { building_location_old: string | null created_at: string | null description: string | null + directions: string id: string location: string | null power: string @@ -158,6 +159,7 @@ export type Database = { building_location_old?: string | null created_at?: string | null description?: string | null + directions: string id?: string location?: string | null power: string @@ -171,6 +173,7 @@ export type Database = { building_location_old?: string | null created_at?: string | null description?: string | null + directions: string id?: string location?: string | null power?: string diff --git a/src/routes/space/[id]/+page.svelte b/src/routes/space/[id]/+page.svelte index 9e37048..f593c9d 100644 --- a/src/routes/space/[id]/+page.svelte +++ b/src/routes/space/[id]/+page.svelte @@ -167,6 +167,11 @@ {/each}
+ {space.directions} +
+
{#if place.name}
diff --git a/src/routes/space/[id]/edit/+page.server.ts b/src/routes/space/[id]/edit/+page.server.ts
index 66d2c65..831e088 100644
--- a/src/routes/space/[id]/edit/+page.server.ts
+++ b/src/routes/space/[id]/edit/+page.server.ts
@@ -21,6 +21,7 @@ export const load: PageServerLoad = async ({ params, locals: { supabase } }) =>
return {
space: {
description: "",
+ directions: "",
building_location: undefined,
location: "",
tags: [],
diff --git a/src/routes/space/[id]/edit/+page.svelte b/src/routes/space/[id]/edit/+page.svelte
index 62888d2..4a40ba1 100644
--- a/src/routes/space/[id]/edit/+page.svelte
+++ b/src/routes/space/[id]/edit/+page.svelte
@@ -461,6 +461,14 @@
rows={2}
/>
+
+
+