gatsby-matrix-theme 25.1.8 → 25.1.9
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 +11 -0
- package/package.json +1 -1
- package/src/components/atoms/cards/operator-card/template-one/index.js +5 -4
- package/src/components/atoms/cards/operator-card/template-two/index.js +6 -5
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.420213db.iframe.bundle.js +1 -0
- package/storybook/public/main.391cddf6.iframe.bundle.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [25.1.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.8...v25.1.9) (2023-06-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* build error ([22ed39e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/22ed39eba238254dff22c5b9f1d541d3c85d43b5))
|
|
7
|
+
* ribbons ([a309b23](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a309b238de56db0078bed6afaa03d4e87e26f7e1))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'build-error-fix' into 'master' ([b37f14a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b37f14aa1cc65cb400913a9d589ab24febdbd01e))
|
|
11
|
+
|
|
1
12
|
## [25.1.8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.7...v25.1.8) (2023-06-13)
|
|
2
13
|
|
|
3
14
|
|
package/package.json
CHANGED
|
@@ -39,9 +39,9 @@ const TemplateOne = ({
|
|
|
39
39
|
sellingPointsIcon = <FaCheck />,
|
|
40
40
|
verifyIcon = '../../../images/verify.svg',
|
|
41
41
|
}) => {
|
|
42
|
-
const
|
|
42
|
+
const ribbons = item?.relation?.ribbons || [];
|
|
43
43
|
const { relation, path } = item;
|
|
44
|
-
const { name, status, selling_points: sellingPoints, bonus } = relation;
|
|
44
|
+
const { name, status, selling_points: sellingPoints, bonus } = relation || {};
|
|
45
45
|
const paymentMethods = bonus?.deposit_methods;
|
|
46
46
|
const hasTnc = showTnc && relation?.extra_fields?.terms_and_conditions_text_enabled;
|
|
47
47
|
const reviewPath = path || relation.path;
|
|
@@ -68,7 +68,7 @@ const TemplateOne = ({
|
|
|
68
68
|
src={imagePrettyUrl(relation?.standardised_logo_url_object?.filename, 88, 88)}
|
|
69
69
|
alt={getAltText(relation?.standardised_logo_url_object, name)}
|
|
70
70
|
/>
|
|
71
|
-
{showRibbon && ribbons && ribbons
|
|
71
|
+
{showRibbon && typeof ribbons !== 'undefined' && ribbons && ribbons?.length > 0 && (
|
|
72
72
|
<span className={styles.ribbon}>{ribbons[0]}</span>
|
|
73
73
|
)}
|
|
74
74
|
</Link>
|
|
@@ -83,7 +83,7 @@ const TemplateOne = ({
|
|
|
83
83
|
<StarRating
|
|
84
84
|
numOfStars={5}
|
|
85
85
|
halfStars={showHalfStars}
|
|
86
|
-
rating={relation
|
|
86
|
+
rating={relation?.rating}
|
|
87
87
|
showLabel={showRatingLabel}
|
|
88
88
|
showDecimal={showRatingDecimal}
|
|
89
89
|
/>
|
|
@@ -210,6 +210,7 @@ const TemplateOne = ({
|
|
|
210
210
|
TemplateOne.propTypes = {
|
|
211
211
|
item: PropTypes.shape({
|
|
212
212
|
relation: PropTypes.shape({
|
|
213
|
+
ribbons: PropTypes.shape([]),
|
|
213
214
|
bonus: PropTypes.shape({
|
|
214
215
|
deposit_methods: PropTypes.shape([]),
|
|
215
216
|
}),
|
|
@@ -34,9 +34,9 @@ const TemplateTwo = ({
|
|
|
34
34
|
showRatingDecimal = false,
|
|
35
35
|
verifyIcon = '../../../images/verify.svg',
|
|
36
36
|
}) => {
|
|
37
|
-
const
|
|
37
|
+
const ribbons = item?.relation?.ribbons || [];
|
|
38
38
|
const { relation, path } = item;
|
|
39
|
-
const { name, status, bonus } = relation;
|
|
39
|
+
const { name, status, bonus } = relation || {};
|
|
40
40
|
const paymentMethods = bonus?.deposit_methods;
|
|
41
41
|
const hasTnc = showTnc && relation?.extra_fields?.terms_and_conditions_text_enabled;
|
|
42
42
|
const reviewPath = path || relation.path;
|
|
@@ -63,8 +63,8 @@ const TemplateTwo = ({
|
|
|
63
63
|
alt={getAltText(relation?.standardised_logo_url_object, name)}
|
|
64
64
|
/>
|
|
65
65
|
</Link>
|
|
66
|
-
{showRibbon && ribbons && ribbons.length > 0 && (
|
|
67
|
-
<span className={styles.ribbon}>{ribbons[0]}</span>
|
|
66
|
+
{showRibbon && typeof ribbons !== 'undefined' && ribbons && ribbons.length > 0 && (
|
|
67
|
+
<span className={styles.ribbon}>{typeof ribbons[0] !== 'undefined' && ribbons[0]}</span>
|
|
68
68
|
)}
|
|
69
69
|
</div>
|
|
70
70
|
<div className={styles?.cardContentTop || ''}>
|
|
@@ -79,7 +79,7 @@ const TemplateTwo = ({
|
|
|
79
79
|
<StarRating
|
|
80
80
|
numOfStars={5}
|
|
81
81
|
halfStars={showHalfStars}
|
|
82
|
-
rating={relation
|
|
82
|
+
rating={relation?.rating}
|
|
83
83
|
showLabel={showRatingLabel}
|
|
84
84
|
showDecimal={showRatingDecimal}
|
|
85
85
|
/>
|
|
@@ -204,6 +204,7 @@ const TemplateTwo = ({
|
|
|
204
204
|
TemplateTwo.propTypes = {
|
|
205
205
|
item: PropTypes.shape({
|
|
206
206
|
relation: PropTypes.shape({
|
|
207
|
+
ribbons: PropTypes.shape([]),
|
|
207
208
|
bonus: PropTypes.shape({
|
|
208
209
|
deposit_methods: PropTypes.shape([]),
|
|
209
210
|
}),
|
|
@@ -345,4 +345,4 @@
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
|
|
348
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.349b6fb9.iframe.bundle.js"></script><script src="134.8ffd6917.iframe.bundle.js"></script><script src="main.
|
|
348
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.349b6fb9.iframe.bundle.js"></script><script src="134.8ffd6917.iframe.bundle.js"></script><script src="main.420213db.iframe.bundle.js"></script></body></html>
|