gatsby-core-theme 1.6.3 → 1.6.4
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 +17 -0
- package/package.json +1 -1
- package/src/components/atoms/author-box/index.js +4 -1
- package/src/components/organisms/archive/index.js +4 -2
- package/src/components/organisms/cards/cards.module.scss +3 -3
- package/src/helpers/processor/index.js +1 -1
- package/src/hooks/tabs/index.js +2 -0
- package/src/styles/utils/_animations.scss +1 -1
- package/tests/factories/pages/list.factory.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [1.6.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.3...v1.6.4) (2021-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* general issues ([419d8d3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/419d8d36f7bfe153e7e07d2ad2b92cd19e597aa1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* align cards on search, dropdown z-index on mobile when open, lazyload force load on tab click ([1e44fa7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1e44fa74f6e6ac63169a9bca9affa40f96a7d3cc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
* Merge branch 'tm-2478-search' into 'master' ([26e1a6e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/26e1a6ebd7632a4b866d9e02f8edf58cca5a17f6))
|
|
15
|
+
* Merge branch 'tm-2478-search' of git.ilcd.rocks:team-floyd/themes/gatsby-themes into tm-2478-search ([725ec14](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/725ec145917d2d7eb436f90cbb87a5427300166d))
|
|
16
|
+
* Merge branch 'master' into tm-2478-search ([9be2cb8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9be2cb83d0948f9925b8e199064e075a44fc2f6d))
|
|
17
|
+
|
|
1
18
|
## [1.6.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.2...v1.6.3) (2021-11-18)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -78,7 +78,10 @@ export default function AuthorBox({ author }) {
|
|
|
78
78
|
</a>
|
|
79
79
|
))}
|
|
80
80
|
</p>
|
|
81
|
-
<
|
|
81
|
+
<div
|
|
82
|
+
className={styles.biography}
|
|
83
|
+
dangerouslySetInnerHTML={{ __html: author.biography }}
|
|
84
|
+
/>
|
|
82
85
|
</div>
|
|
83
86
|
{author.profile_page_path && (
|
|
84
87
|
<Link
|
|
@@ -15,7 +15,9 @@ const Archive = ({ module, PaginationComponent, page, loadMore, gtmClass = '' })
|
|
|
15
15
|
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
if (module.pagination_type === 'load_more') {
|
|
18
|
-
const items = module.items.filter(
|
|
18
|
+
const items = module.items.filter(
|
|
19
|
+
(item, index) => index < parseInt(loadMore ? loadMore.limit : 9)
|
|
20
|
+
);
|
|
19
21
|
setModuleItems(items);
|
|
20
22
|
}
|
|
21
23
|
}, [module, module.items, loadMore]);
|
|
@@ -24,7 +26,7 @@ const Archive = ({ module, PaginationComponent, page, loadMore, gtmClass = '' })
|
|
|
24
26
|
let items = [...module.items];
|
|
25
27
|
if (items.length > moduleItems.length) {
|
|
26
28
|
items = items.filter(
|
|
27
|
-
(item, index) => index < moduleItems.length + parseInt(loadMore.increment)
|
|
29
|
+
(item, index) => index < moduleItems.length + parseInt(loadMore ? loadMore.increment : 9)
|
|
28
30
|
);
|
|
29
31
|
setModuleItems(items);
|
|
30
32
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
display: grid;
|
|
3
3
|
|
|
4
4
|
@include min(mobile) {
|
|
5
|
-
grid-template-columns: repeat(var(--cards-mob-column), 1fr);
|
|
5
|
+
grid-template-columns: repeat(var(--cards-mob-column), minmax(0,1fr));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@include min(tablet) {
|
|
9
|
-
grid-template-columns: repeat(var(--cards-tablet-column), 1fr);
|
|
9
|
+
grid-template-columns: repeat(var(--cards-tablet-column), minmax(0,1fr));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@include min(desktop) {
|
|
13
|
-
grid-template-columns: repeat(var(--cards-desktop-column), 1fr);
|
|
13
|
+
grid-template-columns: repeat(var(--cards-desktop-column), minmax(0,1fr));
|
|
14
14
|
}
|
|
15
15
|
column-gap: 0.8rem;
|
|
16
16
|
@include min(desktop) {
|
|
@@ -40,7 +40,7 @@ export function processSitemapPages(pages, markets) {
|
|
|
40
40
|
let pageList = [];
|
|
41
41
|
Object.keys(pages[market]).forEach((pageType) => {
|
|
42
42
|
const filteredPages = pages[market][pageType].filter(
|
|
43
|
-
(page) => page.robot_options.page_index === 1
|
|
43
|
+
(page) => page.robot_options && page.robot_options.page_index === 1
|
|
44
44
|
);
|
|
45
45
|
|
|
46
46
|
pageList = pageList.concat(filteredPages.map((row) => pick(row, pickHTMLSitemapPageKeys)));
|
package/src/hooks/tabs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { forceCheck } from 'react-lazyload';
|
|
3
4
|
import TabList from './tab/tab-list';
|
|
4
5
|
import styles from './tabs.module.scss';
|
|
5
6
|
|
|
@@ -24,6 +25,7 @@ const Tabs = ({
|
|
|
24
25
|
|
|
25
26
|
function onClickTabItem(tabId) {
|
|
26
27
|
setActiveTab(tabId);
|
|
28
|
+
forceCheck();
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
return (
|
|
@@ -13,6 +13,9 @@ export default function getPageDataList(length) {
|
|
|
13
13
|
template_id: '5',
|
|
14
14
|
name: 'Rizk Casino',
|
|
15
15
|
logo_url: '#',
|
|
16
|
+
robot_options: {
|
|
17
|
+
page_index: 1,
|
|
18
|
+
},
|
|
16
19
|
banner: '313df295c19d7c5f137ceda9d0cc5df7.jpeg',
|
|
17
20
|
meta_title: 'my meta title',
|
|
18
21
|
language: 'en',
|