Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykyta Romanishyn committed Aug 25, 2024
1 parent 1ad5170 commit 4165702
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PostsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export const PostsList: React.FC<Props> = ({ posts }) => {
className={classNames('button is-link', {
'is-light': selectedPost?.id !== post.id,
})}
onClick={() => setSelectedPost(selectedPost?.id === post.id ? null : post)}
onClick={() =>
setSelectedPost(selectedPost?.id === post.id ? null : post)
}
>
{selectedPost?.id === post.id ? 'Close' : 'Open'}
</button>
Expand Down

0 comments on commit 4165702

Please sign in to comment.