From ea606c3ac615267ab67808c8da15a0cd9a2b12e7 Mon Sep 17 00:00:00 2001 From: Hsu Zhong Jun <27919917+dcshzj@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:08:26 +0800 Subject: [PATCH] chore: remove ref from meta in collection items (#868) --- packages/components/src/types/meta.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/components/src/types/meta.ts b/packages/components/src/types/meta.ts index 72857475b7..49667a3b53 100644 --- a/packages/components/src/types/meta.ts +++ b/packages/components/src/types/meta.ts @@ -27,17 +27,6 @@ const BasePageMetaSchema = Type.Composite([ }), ]) -const BaseRefMetaSchema = Type.Composite([ - BaseItemMetaSchema, - Type.Object({ - ref: Type.String({ - title: "URL to the actual item", - description: - "The link that users will open immediately when they click on the item in the parent collection page", - }), - }), -]) - export const ArticlePageMetaSchema = BasePageMetaSchema export const ContentPageMetaSchema = BasePageMetaSchema export const CollectionPageMetaSchema = BasePageMetaSchema @@ -46,8 +35,8 @@ export const HomePageMetaSchema = BasePageMetaSchema export const NotFoundPageMetaSchema = BasePageMetaSchema export const SearchPageMetaSchema = BasePageMetaSchema -export const FileRefMetaSchema = BaseRefMetaSchema -export const LinkRefMetaSchema = BaseRefMetaSchema +export const FileRefMetaSchema = BaseItemMetaSchema +export const LinkRefMetaSchema = BaseItemMetaSchema export type ArticlePageMetaProps = Static export type CollectionPageMetaProps = Static