Skip to content

Commit

Permalink
Render links in DocumentRenderer (#5122)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored Mar 15, 2021
1 parent 3bb4da8 commit 387e0cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-months-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/document-renderer': patch
---

Fixed `DocumentRenderer` not rendering links
3 changes: 3 additions & 0 deletions packages-next/document-renderer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ function DocumentNode({
/>
);
}
case 'link': {
return <renderers.inline.link href={node.href as string}>{children}</renderers.inline.link>;
}
}
return <Fragment>{children}</Fragment>;
}
Expand Down

1 comment on commit 387e0cb

@vercel
Copy link

@vercel vercel bot commented on 387e0cb Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.