@@ -125,27 +125,26 @@ export function StoriesList({
125
125
} ) }
126
126
>
127
127
{ restStories . map ( ( story , index ) => {
128
- const isExternal = story . newsroom . uuid !== newsroomUuid ;
129
128
const newsroom = newsrooms . find (
130
129
( newsroom ) => newsroom . uuid === story . newsroom . uuid ,
131
130
) ;
132
131
133
132
return (
134
133
< StoryCard
135
134
key = { story . uuid }
136
- fallback = { {
137
- image : newsroom ?. newsroom_logo ?? null ,
138
- text : newsroom ?. name ?? '' ,
139
- } }
140
- forceAspectRatio
141
- isExternal = {
142
- isExternal
135
+ external = {
136
+ story . newsroom . uuid !== newsroomUuid
143
137
? {
144
138
newsroomUrl : story . newsroom . url ,
145
139
storyUrl : story . links . newsroom_view ! ,
146
140
}
147
141
: false
148
142
}
143
+ fallback = { {
144
+ image : newsroom ?. newsroom_logo ?? null ,
145
+ text : newsroom ?. name ?? '' ,
146
+ } }
147
+ forceAspectRatio
149
148
layout = "vertical"
150
149
placeholder = { getNewsroomPlaceholderColors ( newsroom ) }
151
150
publishedAt = { story . published_at }
@@ -170,7 +169,6 @@ export function StoriesList({
170
169
{ restStories . length > 0 && layout === 'masonry' && (
171
170
< StaggeredLayout className = { styles . staggered } >
172
171
{ restStories . map ( ( story ) => {
173
- const isExternal = story . newsroom . uuid !== newsroomUuid ;
174
172
const newsroom = newsrooms . find (
175
173
( newsroom ) => newsroom . uuid === story . newsroom . uuid ,
176
174
) ;
@@ -179,18 +177,18 @@ export function StoriesList({
179
177
< StoryCard
180
178
key = { story . uuid }
181
179
className = { styles . card }
182
- fallback = { {
183
- image : newsroom ?. newsroom_logo ?? null ,
184
- text : newsroom ?. name ?? '' ,
185
- } }
186
- isExternal = {
187
- isExternal
180
+ external = {
181
+ story . newsroom . uuid !== newsroomUuid
188
182
? {
189
183
newsroomUrl : story . newsroom . url ,
190
184
storyUrl : story . links . newsroom_view ! ,
191
185
}
192
186
: false
193
187
}
188
+ fallback = { {
189
+ image : newsroom ?. newsroom_logo ?? null ,
190
+ text : newsroom ?. name ?? '' ,
191
+ } }
194
192
layout = "vertical"
195
193
placeholder = { getNewsroomPlaceholderColors ( newsroom ) }
196
194
publishedAt = { story . published_at }
0 commit comments