-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 722-backend-add-booking-history-crud-service
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { AboutItemSchema } from "@/models/sanity/AboutItem/Schema" | ||
import { ContactDetailSchema } from "@/models/sanity/ContactDetail/Schema" | ||
import { HomePageSchema } from "@/models/sanity/HomePage/Schema" | ||
import { LodgeInfoSchema } from "@/models/sanity/LodgeInfo/Schema" | ||
import { type SchemaTypeDefinition } from "sanity" | ||
|
||
export const schema: { types: SchemaTypeDefinition[] } = { | ||
types: [AboutItemSchema, HomePageSchema, ContactDetailSchema] | ||
types: [AboutItemSchema, HomePageSchema, ContactDetailSchema, LodgeInfoSchema] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { SchemaTypeDefinition, defineField } from "sanity" | ||
|
||
export const LodgeInfoSchema: SchemaTypeDefinition = { | ||
name: "lodge-information", | ||
title: "Lodge Information", | ||
description: "What to display to the user before they enter the booking view", | ||
type: "document", | ||
fields: [ | ||
defineField({ | ||
name: "information", | ||
description: "An overview of what the user gets out of booking the lodge", | ||
type: "array", | ||
of: [{ type: "block" }] | ||
}), | ||
defineField({ | ||
name: "images", | ||
description: "Images used to promote the lodge", | ||
type: "array", | ||
of: [{ type: "image" }] | ||
}) | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const LODGE_INFORMATION_GROQ_QUERY = | ||
`[_type == "lodge-information"]` as const |