Skip to content

Commit

Permalink
Fixed schema-dts dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvanderholst committed Nov 24, 2023
1 parent 63cc9b6 commit 8ad60f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/old-cycles-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/magento-review': patch
'@graphcommerce/next-ui': patch
---

Fixed schema-dts dependency issue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Product } from 'schema-dts'
import { JsonLdProductReviewFragment } from './JsonLdProductReview.gql'
import type { Product } from 'schema-dts'
import type { JsonLdProductReviewFragment } from './JsonLdProductReview.gql'

export function jsonLdProductReview(
props: JsonLdProductReviewFragment,
Expand Down
2 changes: 0 additions & 2 deletions packages/next-ui/JsonLd/JsonLd.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Head from 'next/head'
import { safeJsonLdReplacer } from './safeJsonLdReplacer'

export * as SchemaDts from 'schema-dts'

export function JsonLd<T extends { '@type': string }>(props: {
item: T & { '@context': 'https://schema.org' }
}) {
Expand Down

0 comments on commit 8ad60f2

Please sign in to comment.