@jetshop/template-trend 5.12.1 → 5.12.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/template-trend",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "react-scripts build",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jetshop/core": "^5.12.
|
|
48
|
+
"@jetshop/core": "^5.12.2",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "^5.12.
|
|
51
|
-
"@jetshop/react-scripts": "^5.12.
|
|
52
|
-
"@jetshop/ui": "^5.12.
|
|
50
|
+
"@jetshop/intl": "^5.12.2",
|
|
51
|
+
"@jetshop/react-scripts": "^5.12.2",
|
|
52
|
+
"@jetshop/ui": "^5.12.2",
|
|
53
53
|
"@react-google-maps/api": "~1.7.0",
|
|
54
54
|
"prop-types": "^15.6.2",
|
|
55
55
|
"react": "^16.9.0",
|
package/schema.graphql
CHANGED
|
@@ -181,6 +181,7 @@ type Category implements Document {
|
|
|
181
181
|
mainHeader: String
|
|
182
182
|
content: String
|
|
183
183
|
externalId: String
|
|
184
|
+
externalDiscountId: String
|
|
184
185
|
images: [CategoryImage]
|
|
185
186
|
|
|
186
187
|
"""
|
|
@@ -715,6 +716,7 @@ type DeleteCustomerProductListResult {
|
|
|
715
716
|
}
|
|
716
717
|
|
|
717
718
|
type Discount {
|
|
719
|
+
externalId: ID
|
|
718
720
|
name: String
|
|
719
721
|
value: Price
|
|
720
722
|
description: String
|
|
@@ -1137,6 +1139,7 @@ type Order {
|
|
|
1137
1139
|
orderDate: DateTime
|
|
1138
1140
|
currency: Currency
|
|
1139
1141
|
attachments: [OrderAttachment]
|
|
1142
|
+
orderPurchaseLocation: String
|
|
1140
1143
|
}
|
|
1141
1144
|
|
|
1142
1145
|
type OrderAddress {
|
|
@@ -1561,6 +1564,7 @@ type Product implements Document {
|
|
|
1561
1564
|
"""
|
|
1562
1565
|
configurations: [ProductConfiguration]
|
|
1563
1566
|
hasConfigurations: Boolean!
|
|
1567
|
+
hasFamilyMembers: Boolean!
|
|
1564
1568
|
|
|
1565
1569
|
"""
|
|
1566
1570
|
Calculates the price of the product based on the configuration choices that's
|
|
@@ -24,12 +24,8 @@ export const SortOrders = ({ sortOrders }) => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
function SortOrderDropdown({ sortOrders }) {
|
|
27
|
-
const {
|
|
28
|
-
|
|
29
|
-
changeSortOrder,
|
|
30
|
-
sortOrder,
|
|
31
|
-
direction
|
|
32
|
-
} = useSortOrder({ sortOrders });
|
|
27
|
+
const { mappedSortOrder, changeSortOrder, sortOrder, direction } =
|
|
28
|
+
useSortOrder({ sortOrders });
|
|
33
29
|
|
|
34
30
|
const activeItem = mappedSortOrder.find(
|
|
35
31
|
item => item.direction === direction && item.value === sortOrder
|
|
@@ -48,7 +44,7 @@ function SortOrderDropdown({ sortOrders }) {
|
|
|
48
44
|
onSelect={() =>
|
|
49
45
|
changeSortOrder(sortItem.value, sortItem.direction)
|
|
50
46
|
}
|
|
51
|
-
key={sortItem.value}
|
|
47
|
+
key={`${sortItem.value}-${sortItem.direction}`}
|
|
52
48
|
>
|
|
53
49
|
{sortItem.text}
|
|
54
50
|
{activeItem === sortItem && <StyledCheck />}
|