@newskit-render/core 2.39.6-alpha.2 → 2.39.6-alpha.3
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.
|
@@ -33,16 +33,14 @@ const CollectionBlock: React.FC<CollectionBlockProps> = ({
|
|
|
33
33
|
<>
|
|
34
34
|
{index !== 0 && (
|
|
35
35
|
<SectionContext.Consumer>
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
)
|
|
45
|
-
/* eslint-disable-next-line */
|
|
36
|
+
{({ isIndexPage }) =>
|
|
37
|
+
!isIndexPage && (
|
|
38
|
+
<SectionTitle
|
|
39
|
+
title={collection.title}
|
|
40
|
+
sectionURL={sectionURL}
|
|
41
|
+
titleBarColour={titleBarColors[index]}
|
|
42
|
+
/>
|
|
43
|
+
)
|
|
46
44
|
}
|
|
47
45
|
</SectionContext.Consumer>
|
|
48
46
|
)}
|
|
@@ -23,7 +23,6 @@ export const BasicRow: React.FC<LayoutProps> = ({
|
|
|
23
23
|
>
|
|
24
24
|
{articles
|
|
25
25
|
? articles.map((article, i) => (
|
|
26
|
-
/* eslint-disable-next-line */
|
|
27
26
|
<Block
|
|
28
27
|
spaceStack="space050"
|
|
29
28
|
key={article.title}
|
|
@@ -33,7 +32,6 @@ export const BasicRow: React.FC<LayoutProps> = ({
|
|
|
33
32
|
</Block>
|
|
34
33
|
))
|
|
35
34
|
: slice.children.map((block, i) => (
|
|
36
|
-
/* eslint-disable-next-line */
|
|
37
35
|
<Block
|
|
38
36
|
key={'article' in block ? block.article.id : i}
|
|
39
37
|
data-testid={`titleTeaserVertical-${i}`}
|
|
@@ -65,22 +63,20 @@ export const Row3: React.FC<LayoutProps> = ({ slice }) => (
|
|
|
65
63
|
columnGap={{ md: 'space050', lg: 'space050' }}
|
|
66
64
|
data-testid={`${slice.name}-Grid`}
|
|
67
65
|
>
|
|
68
|
-
{
|
|
69
|
-
(Areas) =>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const block = slice.children[i]
|
|
66
|
+
{(Areas) =>
|
|
67
|
+
Object.entries(Areas).map((Area, i) => {
|
|
68
|
+
const AreaComp = Area[1]
|
|
69
|
+
const block = slice.children[i]
|
|
73
70
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* eslint-disable-next-line */
|
|
71
|
+
return (
|
|
72
|
+
<AreaComp
|
|
73
|
+
key={('article' in block && block.article.id) || i}
|
|
74
|
+
data-testid={`titleTeaserVertical-${i}`}
|
|
75
|
+
>
|
|
76
|
+
{getBlock(block, 'horizontal')}
|
|
77
|
+
</AreaComp>
|
|
78
|
+
)
|
|
79
|
+
})
|
|
84
80
|
}
|
|
85
81
|
</GridLayout>
|
|
86
82
|
)
|