Skip to content

Commit

Permalink
feat: support link text
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Aug 28, 2024
1 parent 2f15c25 commit aeeedcd
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 351 deletions.
5 changes: 1 addition & 4 deletions examples/with-typescript/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ type PageDocument = prismic.PrismicDocumentWithUID<{
title: prismic.TitleField;
meta_description: prismic.RichTextField;
related_links: prismic.GroupField<{
label: prismic.KeyTextField;
link: prismic.LinkField;
}>;

Expand All @@ -23,7 +22,6 @@ type PageDocument = prismic.PrismicDocumentWithUID<{
heading: prismic.KeyTextField;
body: prismic.RichTextField;
buttons: prismic.GroupField<{
label: prismic.KeyTextField;
link: prismic.LinkField;
}>;
}
Expand All @@ -38,7 +36,6 @@ type PageDocument = prismic.PrismicDocumentWithUID<{
{
text: prismic.RichTextField;
buttons: prismic.GroupField<{
label: prismic.KeyTextField;
link: prismic.LinkField;
}>;
}
Expand Down Expand Up @@ -85,7 +82,7 @@ export const WithGroupFieldLink = (): JSX.Element => {
: item.link.url
}
>
<PrismicLink field={item.link}>{item.label}</PrismicLink>
<PrismicLink field={item.link} />
</li>
),
)}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"@prismicio/react": "../../src"
},
"devDependencies": {
"@prismicio/client": "^7.5.0"
"@prismicio/client": "7.9.0-alpha.2"
}
}
Loading

0 comments on commit aeeedcd

Please sign in to comment.