gatsby-core-theme 30.0.57 → 30.0.59

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,3 +1,28 @@
1
+ ## [30.0.59](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.58...v30.0.59) (2024-01-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * casinomobile cards ([99b5662](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/99b5662635ff607f841eb2baa83521b46f56b5f6))
7
+ * prefilled modules ([e7405b1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e7405b1aab3e5a1cde92d1ec77283c8dc13a6780))
8
+
9
+ ## [30.0.58](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.57...v30.0.58) (2024-01-23)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * cookie consent ([0e6fa43](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0e6fa43da500b195bfeec7f5c4ea8df44eeb711b))
15
+ * removed gap ([325589d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/325589dc50551a287837564b11257a408df00047))
16
+
17
+
18
+ ### Code Refactoring
19
+
20
+ * hide arrow on image mode template two for spotlights if link is not added ([e744e09](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e744e09a1f7df152709a576c65461cf62c1370d6))
21
+
22
+
23
+ * Merge branch 'tm-3950-spotlights' into 'master' ([9707c5c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9707c5c786fe0ab7f7fd764c4d7efc466b1f47b1))
24
+ * Merge branch 'tm-3981-grouping-bottom-page' into 'master' ([0da1509](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0da150983e5a437722ed767dba318ee1729badf6))
25
+
1
26
  ## [30.0.57](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.56...v30.0.57) (2024-01-19)
2
27
 
3
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "30.0.57",
3
+ "version": "30.0.59",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -16,7 +16,7 @@ export default function TemplateOne({ module }) {
16
16
  {res?.image && <LazyImage src={imagePrettyUrl(res?.image)} />}
17
17
  <p>
18
18
  {res?.link_text || translate(translations, 'link_text_spotlights', 'Top Online Casinos')}{' '}
19
- <FaArrowRight size={20} color="#fff" />
19
+ {res.link?.value && <FaArrowRight size={20} color="#fff" />}
20
20
  </p>
21
21
  {res.subtitle && <span>{res.subtitle}</span>}
22
22
  </>
@@ -30,10 +30,12 @@ export default function TemplateOne({
30
30
  )}
31
31
  {res?.label && <TitleTag>{res.label}</TitleTag>}
32
32
  {res.subtitle && <span>{res.subtitle}</span>}
33
- <div
34
- className={`${styles.desc} ${scrollableContent ? styles.scroll : ''}`}
35
- dangerouslySetInnerHTML={{ __html: res?.text }}
36
- />
33
+ {res?.text && (
34
+ <div
35
+ className={`${styles.desc} ${scrollableContent ? styles.scroll : ''}`}
36
+ dangerouslySetInnerHTML={{ __html: res?.text }}
37
+ />
38
+ )}
37
39
  </div>
38
40
 
39
41
  {res?.link?.value && (
@@ -4,11 +4,13 @@
4
4
  @include flex-direction(column);
5
5
  @include flex-align(center, center);
6
6
  gap: 1.6rem;
7
+
7
8
  @include min(tablet) {
8
9
  display: grid;
9
10
  grid-template-columns: repeat(3, 1fr);
10
11
  }
11
12
  }
13
+
12
14
  .item {
13
15
  border-radius: 1.6rem;
14
16
  background: var(--spotlight-template-one-backgorund-image-text-mode, #fff);
@@ -18,16 +20,19 @@
18
20
  padding: 1.6rem;
19
21
  gap: 1.6rem;
20
22
  @include flex-direction(column);
21
- @include flex-align(start, space-between);
23
+ @include flex-align(stretch, space-between);
24
+
22
25
  > a {
23
26
  min-height: 5.6rem;
24
27
  width: 100%;
25
28
  white-space: normal;
26
29
  }
27
30
  }
31
+
28
32
  .topSection {
29
33
  @include flex-direction(column);
30
34
  gap: 1.6rem;
35
+
31
36
  > img {
32
37
  width: 100%;
33
38
  height: 17.6rem;
@@ -36,7 +41,6 @@
36
41
  margin-bottom: 0.8rem;
37
42
  }
38
43
 
39
-
40
44
  a > label,
41
45
  a > span,
42
46
  a > h1,
@@ -58,7 +62,7 @@
58
62
  }
59
63
 
60
64
  .desc {
61
- color: var(--uspotlight-template-one-desc-image-text-mode, #515156);
65
+ color: var(--spotlight-template-one-desc-image-text-mode, #515156);
62
66
  text-align: justify;
63
67
  font-size: 1.6rem;
64
68
  font-style: normal;
@@ -68,9 +72,10 @@
68
72
  }
69
73
 
70
74
  .scroll {
71
- height: 18rem;
72
- overflow-y: scroll;
75
+ max-height: 18rem;
76
+ overflow-y: auto;
73
77
  padding-right: 1.6rem;
78
+
74
79
  &::-webkit-scrollbar {
75
80
  width: .6rem;
76
81
  }
@@ -89,6 +94,7 @@
89
94
  background: #555;
90
95
  }
91
96
  }
97
+
92
98
  .scrollContent{
93
99
  padding: 2.4rem;
94
100
  }
@@ -27,12 +27,14 @@ export default function TemplateOne({
27
27
  <div className={styles.topSection}>
28
28
  {item?.image && <LazyImage width={104} height={104} src={imagePrettyUrl(item?.image)} />}
29
29
  {item?.label && <TitleTag>{item?.label}</TitleTag>}
30
- <div
31
- className={`${styles.desc} ${scrollableContent ? styles.scroll : ''} ${
32
- readMore && !scrollableContent && !showMore ? styles.readMore : ''
33
- }`}
34
- dangerouslySetInnerHTML={{ __html: item?.text }}
35
- />
30
+ {item?.text && (
31
+ <div
32
+ className={`${styles.desc} ${scrollableContent ? styles.scroll : ''} ${
33
+ readMore && !scrollableContent && !showMore ? styles.readMore : ''
34
+ }`}
35
+ dangerouslySetInnerHTML={{ __html: item?.text }}
36
+ />
37
+ )}
36
38
  {readMore && !scrollableContent && (
37
39
  <span onClick={() => setShowMore(!showMore)} className={styles.readMoreBtn}>
38
40
  {!showMore ? (
@@ -2,30 +2,33 @@
2
2
  @include flex-direction(column);
3
3
  @include flex-align(center, center);
4
4
  gap: 0.8rem;
5
+
5
6
  @include min(tablet) {
6
7
  display: grid;
7
8
  grid-template-columns: repeat(2, auto);
8
- align-items: flex-start;
9
9
  }
10
+
10
11
  > img {
11
12
  width: 8rem;
12
13
  height: 8rem;
13
14
  object-fit: cover;
14
15
  border-radius: 100%;
15
16
  margin-bottom: 1.6rem;
17
+
16
18
  @include min(tablet) {
17
- grid-column: 1/2;
18
- grid-row: 1/5;
19
+ grid-row: 1 / span 2;
20
+ grid-column: 1;
19
21
  width: 12rem;
20
22
  height: 12rem;
21
- margin-top: 4rem;
22
- margin-right: 2.4rem;
23
+ margin: 0;
23
24
  }
25
+
24
26
  @include min(laptop){
25
27
  width: 12.6rem;
26
28
  height: 12.6rem;
27
29
  }
28
30
  }
31
+
29
32
  > label {
30
33
  color: var(--spotlight-template-two-label-image-text-mode, #1b1b1c);
31
34
  font-size: 1.8rem;
@@ -33,19 +36,23 @@
33
36
  font-weight: 700;
34
37
  line-height: 2.8rem;
35
38
  text-transform: capitalize;
39
+
36
40
  @include min(tablet) {
37
- grid-column: 2/3;
38
- grid-row: 1/2;
39
41
  font-size: 2.2rem;
40
42
  line-height: 3rem;
43
+ grid-column: 2;
41
44
  }
42
45
  }
46
+
43
47
  > h2,
44
48
  h3,
45
49
  h4 {
50
+ font-size: 2.2rem;
51
+ font-weight: 700;
52
+ line-height: 3rem;
53
+
46
54
  @include min(tablet) {
47
- grid-column: 2/3;
48
- grid-row: 1/2;
55
+ grid-column: 2;
49
56
  }
50
57
  }
51
58
  }
@@ -58,9 +65,9 @@
58
65
  font-weight: 700;
59
66
  line-height: 2.2rem;
60
67
  margin-bottom: 1.6rem;
68
+
61
69
  @include min(tablet) {
62
- grid-column: 2/3;
63
- grid-row: 2/3;
70
+ grid-column: 2;
64
71
  }
65
72
  }
66
73
 
@@ -74,6 +81,7 @@
74
81
  gap: 1.6rem;
75
82
  @include flex-direction(column);
76
83
  @include flex-align(start, space-between);
84
+
77
85
  > a {
78
86
  height: 5.6rem;
79
87
  width: 100%;
@@ -81,33 +89,29 @@
81
89
  }
82
90
 
83
91
  .desc {
84
- color: var(--uspotlight-template-one-desc-image-text-mode, #515156);
92
+ color: var(--spotlight-template-one-desc-image-text-mode, #515156);
85
93
  text-align: justify;
86
94
  font-size: 1.6rem;
87
95
  font-style: normal;
88
96
  font-weight: 400;
89
97
  line-height: 2.7rem;
90
98
  margin-bottom: 0.8rem;
91
- @include min(tablet){
92
- grid-column: 2/3;
93
- grid-row: 2/3;
94
- }
95
99
 
100
+ @include min(tablet) {
101
+ grid-column: 2;
102
+ }
96
103
  }
97
104
 
98
105
  .readMore {
99
106
  height: 13.5rem;
100
107
  overflow: hidden;
101
- @include min(tablet){
102
- grid-column: 2/3;
103
- grid-row: 2/3;
104
- }
105
108
  }
106
109
 
107
110
  .scroll {
108
- height: 16.2rem;
109
- overflow-y: scroll;
111
+ max-height: 16.2rem;
112
+ overflow-y: auto;
110
113
  padding-right: 1.6rem;
114
+
111
115
  &::-webkit-scrollbar {
112
116
  width: 0.6rem;
113
117
  }
@@ -137,11 +141,12 @@
137
141
  font-weight: 600;
138
142
  line-height: 2.7rem;
139
143
  cursor: pointer;
140
- @include min(tablet){
141
- grid-column: 2/3;
142
- grid-row: 3/4;
143
- }
144
+
144
145
  > svg {
145
146
  margin-left: 0.4rem;
146
147
  }
148
+
149
+ @include min(tablet) {
150
+ grid-column: 2;
151
+ }
147
152
  }
@@ -30,10 +30,12 @@ export default function TemplateOne({
30
30
  )}
31
31
  {res?.label && <TitleTag>{res.label}</TitleTag>}
32
32
  {res.subtitle && <span>{res.subtitle}</span>}
33
- <div
34
- className={`${styles.desc} ${scrollableContent ? styles.scroll : ''}`}
35
- dangerouslySetInnerHTML={{ __html: res?.text }}
36
- />
33
+ {res?.text && (
34
+ <div
35
+ className={`${styles.desc} ${scrollableContent ? styles.scroll : ''}`}
36
+ dangerouslySetInnerHTML={{ __html: res?.text }}
37
+ />
38
+ )}
37
39
  </div>
38
40
  {res?.link?.value && (
39
41
  <Button
@@ -4,11 +4,13 @@
4
4
  @include flex-direction(column);
5
5
  @include flex-align(center, center);
6
6
  gap: 1.6rem;
7
+
7
8
  @include min(tablet) {
8
9
  display: grid;
9
10
  grid-template-columns: repeat(3, 1fr);
10
11
  }
11
12
  }
13
+
12
14
  .item {
13
15
  border-radius: 1.6rem;
14
16
  background: var(--spotlight-template-two-backgorund-image-text-mode, #fff);
@@ -18,17 +20,20 @@
18
20
  padding: 2.4rem;
19
21
  gap: 1.6rem;
20
22
  @include flex-direction(column);
21
- @include flex-align(start, space-between);
23
+ @include flex-align(stretch, space-between);
24
+
22
25
  > a {
23
26
  min-height: 5.6rem;
24
27
  width: 100%;
25
28
  white-space: normal;
26
29
  }
27
30
  }
31
+
28
32
  .topSection {
29
33
  @include flex-direction(column);
30
34
  @include flex-align(center, center);
31
35
  gap: .8rem;
36
+
32
37
  > img {
33
38
  width: 10.4rem;
34
39
  height: 10.4rem;
@@ -37,7 +42,6 @@
37
42
  margin-bottom: 1.6rem;
38
43
  }
39
44
 
40
-
41
45
  a > label,
42
46
  a > span,
43
47
  a > h1,
@@ -57,7 +61,6 @@
57
61
  text-align: center;
58
62
  }
59
63
 
60
-
61
64
  a > span, > span {
62
65
  color: #64646d;
63
66
  text-align: center;
@@ -70,7 +73,7 @@
70
73
  }
71
74
 
72
75
  .desc {
73
- color: var(--uspotlight-template-one-desc-image-text-mode, #515156);
76
+ color: var(--spotlight-template-one-desc-image-text-mode, #515156);
74
77
  text-align: justify;
75
78
  font-size: 1.6rem;
76
79
  font-style: normal;
@@ -80,9 +83,10 @@
80
83
  }
81
84
 
82
85
  .scroll {
83
- height: 18rem;
84
- overflow-y: scroll;
86
+ max-height: 18rem;
87
+ overflow-y: auto;
85
88
  padding-right: 1.6rem;
89
+
86
90
  &::-webkit-scrollbar {
87
91
  width: .6rem;
88
92
  }
@@ -19,15 +19,12 @@ const CookieConsent = ({
19
19
  }) => {
20
20
  const cookieName = 'CookieConsent';
21
21
  // states
22
- const [ck, setCk] = useState(true);
22
+ const [ck, setCk] = useState(
23
+ (typeof window !== `undefined` && getCookie(cookieName) === 'true') || false
24
+ );
23
25
  const { showModal } = useContext(ModalContext);
24
26
  const { translations } = useContext(Context) || {};
25
27
 
26
- useEffect(() => {
27
- const getCk = Boolean(getCookie(cookieName)) || false;
28
- setCk(getCk);
29
- }, [ck]);
30
-
31
28
  // when user declines
32
29
  const handleDecline = () => {
33
30
  if (declineURL !== '') navigate(`/${declineURL}`);
@@ -1,7 +1,11 @@
1
1
  .floatingArea{
2
2
  @include flex-direction(column);
3
- gap: 1rem;
4
3
  width: 100%;
5
4
  position: fixed;
5
+ transition: all 1s;
6
+ bottom: -30rem;
7
+ }
8
+
9
+ .show {
6
10
  bottom: 0;
7
11
  }
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable camelcase */
2
2
  /* eslint-disable no-useless-concat */
3
3
  /* eslint-disable no-restricted-globals */
4
- import React, { useEffect, useRef } from 'react';
4
+ import React, { useEffect } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import loadable from '@loadable/component';
7
7
  // eslint-disable-next-line import/no-extraneous-dependencies
@@ -25,7 +25,6 @@ function Body({ pageContext, children, hideOperatorBanner, serverData, offsetTop
25
25
  const main = getBodySection('main');
26
26
  const navigation = getBodySection('navigation');
27
27
  const footer = getBodySection('footer');
28
- const floatingArea = useRef();
29
28
  const showScroll = isSticky(offsetTop);
30
29
 
31
30
  useEffect(() => {
@@ -61,11 +60,7 @@ function Body({ pageContext, children, hideOperatorBanner, serverData, offsetTop
61
60
  )}
62
61
  {children && <main>{children}</main>}
63
62
  <Footer template={template} section={footer} />
64
- <div
65
- className={styles.floatingArea}
66
- style={{ display: showScroll ? 'flex' : 'none' }}
67
- ref={floatingArea}
68
- >
63
+ <div className={`${styles.floatingArea} ${showScroll ? styles.show : ''}`}>
69
64
  <ScrollToTop />
70
65
  {OperatorBanner && (
71
66
  <OperatorBanner
@@ -22,7 +22,7 @@ export default {
22
22
  'partnerships.gigmedia.com': ['inactive', 'blacklisted'],
23
23
  'habibibet.org': ['inactive', 'blacklisted'],
24
24
  'xn--nt-casino-v2a.se': ['inactive', 'blacklisted'],
25
- 'casinomobile.co.za': [],
25
+ 'casinomobile.co.za': ['inactive', 'blacklisted'],
26
26
  'betamericalatina.com': ['inactive', 'blacklisted'],
27
27
  },
28
28
  keep_page_extra_fields: {
@@ -115,9 +115,16 @@ export function processSections(sections, skipPost = false, page, translations,
115
115
  }
116
116
  if (sections[sectionKey] && sections[sectionKey].modules) {
117
117
  sections[sectionKey].modules.forEach((module, key) => {
118
- if (shouldSavePrefilled(module, siteName) && savedModules[module.module_value_id]) {
119
- Object.assign(module, savedModules[module.module_value_id]);
118
+ if (shouldSavePrefilled(module, siteName) && savedModules[module.value_id]) {
119
+ Object.assign(module, savedModules[module.value_id]);
120
120
  } else {
121
+ if (module.value_type === ModuleValue.VALUE_TYPE_PREFILLED_MODULE_MARKET) {
122
+ module = {
123
+ ...cloneDeep(prefilledMarketModules[module.value_id]),
124
+ value_type: ModuleValue.VALUE_TYPE_PREFILLED_MODULE_MARKET,
125
+ };
126
+ }
127
+
121
128
  processModule(
122
129
  module,
123
130
  pages,
@@ -132,8 +139,10 @@ export function processSections(sections, skipPost = false, page, translations,
132
139
  markets
133
140
  );
134
141
 
142
+ sections[sectionKey].modules[key] = module;
143
+
135
144
  if (shouldSavePrefilled(module, siteName)) {
136
- savedModules[module.module_value_id] = module;
145
+ savedModules[module.value_id] = module;
137
146
  }
138
147
  }
139
148
  });
@@ -26,11 +26,11 @@ export function processCardsModule(module, pages, pagesCloned, pagesMappedById)
26
26
  module.cards_page_type !== 'operator'
27
27
  ? pagesCloned[modelType]
28
28
  : pagesCloned[modelType].filter(
29
- (page) =>
30
- !settings.filter_cards_modules[process.env.GATSBY_SITE_NAME].includes(
31
- page.relation && page.relation.status
32
- )
33
- );
29
+ (page) =>
30
+ !settings.filter_cards_modules[process.env.GATSBY_SITE_NAME].includes(
31
+ page.relation && page.relation.status
32
+ )
33
+ );
34
34
  module.items = sampleSize(samplePages, numOfItems);
35
35
  } else {
36
36
  module.items = pagesCloned[modelType].slice(0, numOfItems);
@@ -74,13 +74,18 @@ export function filterGames(pages, selectedCategories, selectedProviders) {
74
74
  }
75
75
 
76
76
  pages.forEach((page) => {
77
- page.relation.game_categories.forEach((game) => {
78
- if (selectedCategories && selectedCategories.includes(game.id)) {
77
+ if (selectedCategories) {
78
+ page.relation.game_categories.forEach((game) => {
79
+ if (selectedCategories.includes(game.id)) {
80
+ pagesFiltered.push(page);
81
+ }
82
+ });
83
+ }
84
+
85
+ if (selectedProviders) {
86
+ if (selectedProviders.includes(page.relation.game_provider.id)) {
79
87
  pagesFiltered.push(page);
80
88
  }
81
- });
82
- if (selectedProviders && selectedProviders.includes(page.relation.game_provider.id)) {
83
- pagesFiltered.push(page);
84
89
  }
85
90
  });
86
91
 
@@ -117,16 +122,21 @@ export function filterOperators(pages, selectedProviders, selectedTypes) {
117
122
  }
118
123
 
119
124
  pages.forEach((page) => {
120
- page.relation.software.forEach((software) => {
121
- if (selectedProviders && selectedProviders.includes(software.id)) {
122
- pagesFiltered.push(page);
123
- }
124
- });
125
- page.relation.types.forEach((type) => {
126
- if (selectedTypes && selectedTypes.includes(type)) {
127
- pagesFiltered.push(page);
128
- }
129
- });
125
+ if (selectedProviders) {
126
+ page.relation.software.forEach((software) => {
127
+ if (selectedProviders.includes(software.id)) {
128
+ pagesFiltered.push(page);
129
+ }
130
+ });
131
+ }
132
+
133
+ if (selectedTypes) {
134
+ page.relation.types.forEach((type) => {
135
+ if (selectedTypes.includes(type)) {
136
+ pagesFiltered.push(page);
137
+ }
138
+ });
139
+ }
130
140
  });
131
141
 
132
142
  return filterInactiveOperators(pagesFiltered);
@@ -185,6 +195,7 @@ export function processCardsV2(module, pagesCloned, pagesMappedById, pageId) {
185
195
  const selectedCategories = module.cards_selector_filters.page_categories;
186
196
 
187
197
  const pagesFilteredByAuthor = filterPages(pagesList, selectedAuthors, 'author_id');
198
+
188
199
  // Filter by reviewer
189
200
  const pagesFilteredByReviewer = filterPages(
190
201
  pagesFilteredByAuthor,
@@ -205,7 +216,6 @@ export function processCardsV2(module, pagesCloned, pagesMappedById, pageId) {
205
216
  // Get limit, if not set 50 as default
206
217
  const itemLimit = module.cards_selector_filters_limit || 50;
207
218
  let finalizedFilteredPages = [];
208
-
209
219
  switch (cardType) {
210
220
  case 'game':
211
221
  finalizedFilteredPages = filterGames(
@@ -228,7 +238,7 @@ export function processCardsV2(module, pagesCloned, pagesMappedById, pageId) {
228
238
  finalizedFilteredPages = filteredPages;
229
239
  }
230
240
  const uniquePages = removeCurrentPage(removeDuplicates(finalizedFilteredPages, 'id'), pageId);
231
-
241
+
232
242
  // Applying sorting
233
243
  if (sortType === 'random') {
234
244
  module.items = sampleSize(uniquePages, itemLimit);
@@ -238,6 +248,7 @@ export function processCardsV2(module, pagesCloned, pagesMappedById, pageId) {
238
248
  module.items = uniquePages.slice(0, itemLimit);
239
249
  }
240
250
  }
251
+
241
252
  }
242
253
  }
243
254
 
@@ -249,7 +260,7 @@ export function processCardsV2(module, pagesCloned, pagesMappedById, pageId) {
249
260
  if (pageId !== null) {
250
261
  module.module_title = getModuleTitle(module, pagesMappedById[pageId]);
251
262
  }
252
-
263
+
253
264
  // modify page so it doesn't have too much data
254
265
  module.items = module.items.map((item) => clonePageForCards(cloneDeep(item), module.style));
255
266
  }
@@ -273,19 +284,22 @@ export function processTopListModule(module, relations, pages, markets) {
273
284
  // Remove the ribbons if are empty, will be add ribbons from operator
274
285
  if (item.ribbons && item.ribbons.length === 0) delete item.ribbons;
275
286
  const clone = pick(cloneDeep(relations.operator[item.operator_id]), topListPickKeys);
276
-
277
- // refactor deposit method
278
- clone.bonus.deposit_methods = clone.bonus.deposit_methods?.map(({ id, name, standardised_logo_filename }) => (
279
- { id, name, standardised_logo_filename }
280
- ));
281
287
 
288
+ // refactor deposit method
289
+ clone.bonus.deposit_methods = clone.bonus.deposit_methods?.map(
290
+ ({ id, name, standardised_logo_filename }) => ({ id, name, standardised_logo_filename })
291
+ );
282
292
 
283
293
  const operatorPage =
284
294
  pages && pages.operator
285
295
  ? pages.operator.filter((page) => page.relation_id === item.operator_id)
286
296
  : [];
287
297
  if (operatorPage[0]?.extra_fields) {
288
- clone.reviewSummery = getExtraField(operatorPage[0]?.extra_fields, 'operator_review_summary', null);
298
+ clone.reviewSummery = getExtraField(
299
+ operatorPage[0]?.extra_fields,
300
+ 'operator_review_summary',
301
+ null
302
+ );
289
303
  }
290
304
 
291
305
  if (operatorPage.length >= 1 && operatorPage[0].author) {
@@ -348,7 +362,9 @@ export function processModule(
348
362
  // See more link
349
363
  if (module.see_more_link?.value) {
350
364
  module.see_more_link.path =
351
- module.see_more_link?.type === 'page' ? pagesMappedById[module.see_more_link.value].path : module.see_more_link?.value
365
+ module.see_more_link?.type === 'page'
366
+ ? pagesMappedById[module.see_more_link.value].path
367
+ : module.see_more_link?.value;
352
368
  }
353
369
 
354
370
  if (module.name === 'cards') {