@@ -29,11 +34,7 @@ const CustomNewsScroll = ({ data, word }: IProps) => {
text={dataEl.excerpt}
date={dataEl.published_at}
categories={dataEl.categories}
- img={
- dataEl.featured_images[0]
- ? dataEl.featured_images[0].path
- : ""
- }
+ img={dataEl.featured_images[0] ? dataEl.featured_images[0].path : ''}
/>
);
})
@@ -41,9 +42,16 @@ const CustomNewsScroll = ({ data, word }: IProps) => {
)
) : (
-
Нет новостей для "{word || ""}"
+
Нет новостей для "{word || ''}"
)}