Skip to content

Commit

Permalink
Merge branch 'dani/link-variant' into dani/link-variant-12
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Dec 19, 2024
2 parents 1b45000 + 81b2fce commit 537d463
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/adapter-next/src/hooks/snippet-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const snippetRead: SnippetReadHook<PluginOptions> = async (
// We cannot use `format` since this snippet contains invalid syntax.
// Please ensure this snippet is manually formatted correctly.
// Make sure to use spaces instead of tabs.
code = `{${path}.map((link) => (
code = stripIndent`{${path}.map((link) => (
<PrismicNextLink
key={link.key}
field={link}${variant("link", "\n ")}>
Expand All @@ -98,8 +98,8 @@ export const snippetRead: SnippetReadHook<PluginOptions> = async (
// We cannot use `format` since this snippet contains invalid syntax.
// Please ensure this snippet is manually formatted correctly.
// Make sure to use spaces instead of tabs.
code = `{${path}.map((link) => (
<PrismicNextLink
code = stripIndent`{${path}.map((link) => (
<PrismicNextLink
key={link.key}
field={link}${variant("link", "\n ")}
/>
Expand Down

0 comments on commit 537d463

Please sign in to comment.