File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,25 @@ export default function CardsColumns({
39
39
{ titles . map ( ( title , index ) => (
40
40
< SwiperSlide key = { index } className = { styles . swiperSlide } >
41
41
< div className = { styles . inner__content } >
42
- < Card
43
- title = { title }
44
- image = { images ?images [ index ] :undefined }
45
- altTag = { altTags ?altTags [ index ] :undefined }
46
- content = { content [ index ] }
47
- link = { links [ index ] }
48
- linkText = { linkText [ index ] }
49
- key = { index }
50
- />
42
+ { images ? (
43
+ < Card
44
+ title = { title }
45
+ image = { images [ index ] }
46
+ altTag = { altTags [ index ] }
47
+ content = { content [ index ] }
48
+ link = { links [ index ] }
49
+ linkText = { linkText [ index ] }
50
+ key = { index }
51
+ />
52
+ ) : (
53
+ < Card
54
+ title = { title }
55
+ content = { content [ index ] }
56
+ link = { links [ index ] }
57
+ linkText = { linkText [ index ] }
58
+ key = { index }
59
+ />
60
+ ) }
51
61
</ div >
52
62
</ SwiperSlide >
53
63
) ) }
You can’t perform that action at this time.
0 commit comments