Skip to content

Commit

Permalink
chore: remove ref from meta in collection items (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj authored Nov 11, 2024
1 parent 9f28c0c commit ea606c3
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/components/src/types/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<typeof ArticlePageMetaSchema>
export type CollectionPageMetaProps = Static<typeof CollectionPageMetaSchema>
Expand Down

0 comments on commit ea606c3

Please sign in to comment.