@graphcommerce/magento-store 3.3.23 → 3.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-store",
3
- "version": "3.3.23",
3
+ "version": "3.3.24",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.5.6",
24
- "@graphcommerce/graphql": "^2.105.11",
24
+ "@graphcommerce/graphql": "^2.105.12",
25
25
  "@graphcommerce/image": "^2.105.11",
26
- "@graphcommerce/next-ui": "^3.21.6",
26
+ "@graphcommerce/next-ui": "^3.21.7",
27
27
  "@lingui/macro": "^3.13.0",
28
28
  "@material-ui/core": "^4.12.3",
29
29
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -32,5 +32,5 @@
32
32
  "react-dom": "^17.0.2",
33
33
  "type-fest": "^2.8.0"
34
34
  },
35
- "gitHead": "fd199126afe4600f7ef105d2dd4e0f5ce001ff54"
35
+ "gitHead": "09aca3fbe0a5dc006b33fc8dee349c81bcbe0cb8"
36
36
  }
@@ -73,6 +73,7 @@ export default function StoreSwitcherList(props: StoreSwitcherListProps) {
73
73
  passHref
74
74
  >
75
75
  <ListItem
76
+ disabled={!storeToLocale(group.stores[0].locale)}
76
77
  button
77
78
  component='a'
78
79
  selected={
@@ -87,6 +88,11 @@ export default function StoreSwitcherList(props: StoreSwitcherListProps) {
87
88
  <ListItemText>
88
89
  {group.name}
89
90
  {group.stores.length <= 1 && ` — ${group.stores[0].store_name}`}
91
+
92
+ {process.env.NODE_ENV !== 'production' &&
93
+ !storeToLocale(group.stores[0].locale) && (
94
+ <> 🚨 Could not find configuration in .env</>
95
+ )}
90
96
  </ListItemText>
91
97
  </ListItem>
92
98
  </PageLink>
@@ -101,13 +107,20 @@ export default function StoreSwitcherList(props: StoreSwitcherListProps) {
101
107
  passHref
102
108
  >
103
109
  <ListItem
110
+ disabled={!localeToStore(locale)}
104
111
  button
105
112
  component='a'
106
113
  selected={localeToStore(locale) === store.locale}
107
114
  color='inherit'
108
115
  className={classes.listItemIndented}
109
116
  >
110
- <ListItemText inset>{store.store_name}</ListItemText>
117
+ <ListItemText inset>
118
+ {store.store_name}
119
+
120
+ {process.env.NODE_ENV !== 'production' && !localeToStore(locale) && (
121
+ <> 🚨 Could not find configuration in .env</>
122
+ )}
123
+ </ListItemText>
111
124
  </ListItem>
112
125
  </PageLink>
113
126
  ))}