diff --git a/apps/astro/src/pages/realizacje/[slug].astro b/apps/astro/src/pages/realizacje/[slug].astro
index de72e49..a968015 100644
--- a/apps/astro/src/pages/realizacje/[slug].astro
+++ b/apps/astro/src/pages/realizacje/[slug].astro
@@ -7,6 +7,7 @@ import Hero, { Hero_Query, type HeroProps } from '@/components/Projects/Project/
import Gallery, { Gallery_Query, type Props as GalleryProps } from '@/components/Projects/Project/Gallery.astro'
import Summary, { Summary_Query, type Props as SummaryProps } from '@/components/Projects/Project/Summary.astro'
import Overview, { Overview_Query, type Props as OverviewProps } from '@/components/Projects/Project/Overview.astro'
+import Components, { Components_Query, type ComponentsProps } from '@/components/Components.astro'
export const slugPrefix = '/realizacje/'
@@ -29,6 +30,7 @@ const page = await sanityFetch<{
summary: SummaryProps
overview: OverviewProps
gallery: GalleryProps
+ components: ComponentsProps
}>({
query: `
*[_type == 'Project_Collection' && slug.current == $slug][0] {
@@ -37,6 +39,7 @@ const page = await sanityFetch<{
${Summary_Query}
${Overview_Query}
${Gallery_Query}
+ ${Components_Query}
}
`,
params: { slug: `${slugPrefix}${slug}` },
@@ -57,4 +60,5 @@ const metadata = await metadataFetch('Project_Collection', `${slugPrefix}${slug}
+
diff --git a/apps/sanity/schema/collectionTypes/Project_Collection.tsx b/apps/sanity/schema/collectionTypes/Project_Collection.tsx
index 74cbdce..a2d30b6 100644
--- a/apps/sanity/schema/collectionTypes/Project_Collection.tsx
+++ b/apps/sanity/schema/collectionTypes/Project_Collection.tsx
@@ -178,6 +178,11 @@ export default defineType({
collapsed: false,
}
}),
+ defineField({
+ name: 'components',
+ type: 'components',
+ title: 'Page Components',
+ }),
defineField({
name: 'seo',
type: 'seo',