@graphcommerce/magento-review 3.1.9 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`25ef6cf08`](https://github.com/graphcommerce-org/graphcommerce/commit/25ef6cf08c278105307d6f604b7135d637e9046c), [`80e30bb77`](https://github.com/graphcommerce-org/graphcommerce/commit/80e30bb77015755fbc00a7935d590f80c1c1c18c)]:
8
+ - @graphcommerce/graphql@3.1.2
9
+ - @graphcommerce/graphql-mesh@4.1.3
10
+ - @graphcommerce/magento-customer@4.2.9
11
+ - @graphcommerce/magento-product@4.3.1
12
+ - @graphcommerce/magento-store@4.2.1
13
+ - @graphcommerce/next-ui@4.7.1
14
+
15
+ ## 3.2.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`669a17a97`](https://github.com/graphcommerce-org/graphcommerce/commit/669a17a973c47c00fed4a649a9da0bfc5670c5da)]:
20
+ - @graphcommerce/magento-product@4.3.0
21
+
22
+ ## 3.2.0
23
+
24
+ ### Minor Changes
25
+
26
+ - [#1416](https://github.com/graphcommerce-org/graphcommerce/pull/1416) [`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - SEO audit
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [[`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04)]:
31
+ - @graphcommerce/magento-product@4.2.0
32
+ - @graphcommerce/magento-store@4.2.0
33
+ - @graphcommerce/next-ui@4.7.0
34
+ - @graphcommerce/magento-customer@4.2.8
35
+
3
36
  ## 3.1.9
4
37
 
5
38
  ### Patch Changes
@@ -7,7 +7,7 @@ import {
7
7
  } from '@graphcommerce/next-ui'
8
8
  import { Trans } from '@lingui/macro'
9
9
  import { Typography, Button, Box, SxProps, Theme, Link } from '@mui/material'
10
- import PageLink from 'next/link'
10
+ import { useRouter } from 'next/router'
11
11
  import React, { useState } from 'react'
12
12
  import { ProductReviewChip } from '../ProductReviewChip/ProductReviewChip'
13
13
  import { ProductReviewsFragment } from './ProductReviews.gql'
@@ -36,6 +36,7 @@ export function ProductReviews(props: ProductReviewsProps) {
36
36
  const { reviews, url_key, sx = [] } = props
37
37
  const config = 'en_US'
38
38
  const locale = config.replace('_', '-')
39
+ const router = useRouter()
39
40
 
40
41
  const [reviewPage, setPage] = useState<number>(1)
41
42
 
@@ -74,21 +75,20 @@ export function ProductReviews(props: ProductReviewsProps) {
74
75
  marginTop: theme.spacings.sm,
75
76
  })}
76
77
  >
77
- <PageLink href={`/account/reviews/add?url_key=${url_key}`} passHref>
78
- <Button
79
- variant='pill'
80
- color='primary'
81
- size='medium'
82
- className={classes.writeReviewButton}
83
- sx={(theme) => ({
84
- [theme.breakpoints.down('sm')]: {
85
- whiteSpace: 'nowrap',
86
- },
87
- })}
88
- >
89
- <Trans>Write a review</Trans>
90
- </Button>
91
- </PageLink>
78
+ <Button
79
+ variant='pill'
80
+ color='primary'
81
+ size='medium'
82
+ className={classes.writeReviewButton}
83
+ onClick={() => router.push(`/account/reviews/add?url_key=${url_key}`)}
84
+ sx={(theme) => ({
85
+ [theme.breakpoints.down('sm')]: {
86
+ whiteSpace: 'nowrap',
87
+ },
88
+ })}
89
+ >
90
+ <Trans>Write a review</Trans>
91
+ </Button>
92
92
 
93
93
  {!!total_pages && total_pages > 1 && (
94
94
  <Pagination
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-review",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.1.9",
5
+ "version": "3.2.2",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,13 +18,13 @@
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "3.1.1",
22
- "@graphcommerce/graphql-mesh": "4.1.2",
21
+ "@graphcommerce/graphql": "3.1.2",
22
+ "@graphcommerce/graphql-mesh": "4.1.3",
23
23
  "@graphcommerce/image": "3.1.5",
24
- "@graphcommerce/magento-customer": "4.2.7",
25
- "@graphcommerce/magento-product": "4.1.11",
26
- "@graphcommerce/magento-store": "4.1.9",
27
- "@graphcommerce/next-ui": "4.6.2",
24
+ "@graphcommerce/magento-customer": "4.2.9",
25
+ "@graphcommerce/magento-product": "4.3.1",
26
+ "@graphcommerce/magento-store": "4.2.1",
27
+ "@graphcommerce/next-ui": "4.7.1",
28
28
  "@graphcommerce/react-hook-form": "3.1.2",
29
29
  "schema-dts": "^1.1.0"
30
30
  },