Skip to content

Commit 3451bac

Browse files
committed
Add grid display option on products shelf section props and CMS fields
1 parent 1d4fe7d commit 3451bac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

functions/ssr/src/sections/ProductShelfSection.astro

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
---
2-
import type { InferCmsOutput } from '@@sf/content';
2+
import type { CmsFields, InferCmsOutput } from '@@sf/content';
33
import { productShelfCmsFields } from '@@sf/composables/use-product-shelf';
44
import ProductShelf from '~/components/ProductShelf.vue';
55
6-
export const cmsFields = productShelfCmsFields;
6+
export const cmsFields = ({
7+
...productShelfCmsFields,
8+
isGrid: {
9+
widget: 'boolean',
10+
label: { pt: 'Vitrine em grade', en: 'Grid display case' },
11+
},
12+
}) as const satisfies CmsFields;
713
814
export type Props = InferCmsOutput<typeof cmsFields> & {
915
isRelatedProducts?: boolean;

0 commit comments

Comments
 (0)