Skip to content

Commit

Permalink
feat(news): add id prop to EditableNewsItem component for better iden…
Browse files Browse the repository at this point in the history
…tification

The id prop is added to the EditableNewsItem component to improve the identification of each news item. This change enhances the component's functionality and makes it easier to manage and interact with individual news items.
  • Loading branch information
ktun95 committed Sep 6, 2024
1 parent 72d7e61 commit 9e993df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/dicty-frontpage/src/pages/news/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const NewsView = ({ contentList }: NewsViewProperties) => {
Amap(({ id, name, content, created_at }) => (
<EditableNewsItem
key={id}
id={id}
name={name}
updated_at={created_at}
content={content}
Expand Down

0 comments on commit 9e993df

Please sign in to comment.