@graphcommerce/next-ui 3.24.2 → 3.24.3

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/AppShell/Logo.tsx CHANGED
@@ -32,7 +32,7 @@ export default function Logo(props: LogoProps) {
32
32
  const router = useRouter()
33
33
  const classes = useStyles(props)
34
34
 
35
- return router.asPath === '/' ? (
35
+ return router.asPath.split('?')[0] === '/' ? (
36
36
  <div className={classes.parent}>
37
37
  <Image layout='fixed' loading='eager' {...image} className={classes.logo} />
38
38
  </div>
@@ -140,7 +140,7 @@ export default function MenuFab(props: MenuFabProps) {
140
140
  <ListItem
141
141
  button
142
142
  dense
143
- selected={router.asPath === '/'}
143
+ selected={router.asPath.split('?')[0] === '/'}
144
144
  classes={{ root: classes.menuItem }}
145
145
  >
146
146
  <ListItemText classes={{ primary: classes.menuItemText }}>Home</ListItemText>
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.24.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.24.2...@graphcommerce/next-ui@3.24.3) (2022-01-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * prevent layout from breaking when url has params ([9197bf7](https://github.com/ho-nl/m2-pwa/commit/9197bf72c5c3e422d70741cadbc40b19a1ae4936))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.24.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.24.1...@graphcommerce/next-ui@3.24.2) (2022-01-21)
7
18
 
8
19
 
@@ -131,7 +131,7 @@ export function LayoutHeader(props: LayoutHeaderProps) {
131
131
  divider: !!divider,
132
132
  })
133
133
 
134
- return (
134
+ return children ? (
135
135
  <div {...className('sticky')}>
136
136
  <LayoutHeaderContent
137
137
  left={left}
@@ -144,5 +144,7 @@ export function LayoutHeader(props: LayoutHeaderProps) {
144
144
  {children}
145
145
  </LayoutHeaderContent>
146
146
  </div>
147
+ ) : (
148
+ <></>
147
149
  )
148
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.24.2",
3
+ "version": "3.24.3",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.5.6",
13
13
  "@graphcommerce/framer-next-pages": "^2.109.2",
14
- "@graphcommerce/framer-scroller": "^1.2.7",
14
+ "@graphcommerce/framer-scroller": "^1.2.8",
15
15
  "@graphcommerce/framer-utils": "^2.103.21",
16
16
  "@graphcommerce/graphql": "^2.105.13",
17
17
  "@graphcommerce/image": "^2.105.13",
@@ -51,5 +51,5 @@
51
51
  "project": "./tsconfig.json"
52
52
  }
53
53
  },
54
- "gitHead": "75d3f01a066d04aa82515011971619e48048bfd4"
54
+ "gitHead": "058c76b8990aae1a2a018a5b659dc7dda0651af8"
55
55
  }