diff --git a/src/entities/article/ui/blog-slider-layout/index.tsx b/src/entities/article/ui/blog-slider-layout/index.tsx index 701728a..2e95b24 100644 --- a/src/entities/article/ui/blog-slider-layout/index.tsx +++ b/src/entities/article/ui/blog-slider-layout/index.tsx @@ -81,7 +81,7 @@ export const BlogSliderLayout: React.FC = ({ title={item.title} categoryName={item.category.name} timeToRead={item.timeToRead} - createdAt={item.createdAt} + createdAt={item.date} url={item.link} className={css.blog} /> diff --git a/src/shared/lib/types/blog.ts b/src/shared/lib/types/blog.ts index 2799113..74b658c 100644 --- a/src/shared/lib/types/blog.ts +++ b/src/shared/lib/types/blog.ts @@ -6,6 +6,7 @@ export interface IBlog extends IBaseFields { title: string; slug: string; link: string; + date: string; timeToRead: string; category: IBlogCategory; image: IFileObject; diff --git a/src/widgets/08-blog-screens/ui/02-blogs/index.tsx b/src/widgets/08-blog-screens/ui/02-blogs/index.tsx index 9944c74..fe34058 100644 --- a/src/widgets/08-blog-screens/ui/02-blogs/index.tsx +++ b/src/widgets/08-blog-screens/ui/02-blogs/index.tsx @@ -64,7 +64,7 @@ export const Blogs: React.FC = () => { timeToRead={item.timeToRead} categoryName={item.category.name} imageSrc={item.image.url} - createdAt={item.createdAt} + createdAt={item.date} /> ))}