Skip to content

Commit

Permalink
fix: date
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettyong committed Mar 27, 2024
1 parent 696c389 commit 13c8418
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entities/article/ui/blog-slider-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const BlogSliderLayout: React.FC<Props> = ({
title={item.title}
categoryName={item.category.name}
timeToRead={item.timeToRead}
createdAt={item.createdAt}
createdAt={item.date}
url={item.link}
className={css.blog}
/>
Expand Down
1 change: 1 addition & 0 deletions src/shared/lib/types/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface IBlog extends IBaseFields {
title: string;
slug: string;
link: string;
date: string;
timeToRead: string;
category: IBlogCategory;
image: IFileObject;
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/08-blog-screens/ui/02-blogs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
</li>
))}
Expand Down

0 comments on commit 13c8418

Please sign in to comment.