Skip to content

Commit ea606c3

Browse files
authored
chore: remove ref from meta in collection items (#868)
1 parent 9f28c0c commit ea606c3

File tree

1 file changed

+2
-13
lines changed
  • packages/components/src/types

1 file changed

+2
-13
lines changed

packages/components/src/types/meta.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ const BasePageMetaSchema = Type.Composite([
2727
}),
2828
])
2929

30-
const BaseRefMetaSchema = Type.Composite([
31-
BaseItemMetaSchema,
32-
Type.Object({
33-
ref: Type.String({
34-
title: "URL to the actual item",
35-
description:
36-
"The link that users will open immediately when they click on the item in the parent collection page",
37-
}),
38-
}),
39-
])
40-
4130
export const ArticlePageMetaSchema = BasePageMetaSchema
4231
export const ContentPageMetaSchema = BasePageMetaSchema
4332
export const CollectionPageMetaSchema = BasePageMetaSchema
@@ -46,8 +35,8 @@ export const HomePageMetaSchema = BasePageMetaSchema
4635
export const NotFoundPageMetaSchema = BasePageMetaSchema
4736
export const SearchPageMetaSchema = BasePageMetaSchema
4837

49-
export const FileRefMetaSchema = BaseRefMetaSchema
50-
export const LinkRefMetaSchema = BaseRefMetaSchema
38+
export const FileRefMetaSchema = BaseItemMetaSchema
39+
export const LinkRefMetaSchema = BaseItemMetaSchema
5140

5241
export type ArticlePageMetaProps = Static<typeof ArticlePageMetaSchema>
5342
export type CollectionPageMetaProps = Static<typeof CollectionPageMetaSchema>

0 commit comments

Comments
 (0)