Skip to content

Commit

Permalink
Added mention of a bug with onClick in TidCarousel.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Sep 27, 2024
1 parent 31e8756 commit 39cfc28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stories/client-participation/TidCarousel.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ Default.args = {
selectedTidCuration: 1,
commentsToShow: commentsData.slice(10,20),
selectedComment: null,
// TODO: Pretty sure this is janky. It should be simply action("Clicked")
// and the prop in tidCarousel should be:
// onClick={() => this.props.handleCommentClick(c)}
// not just
// onClick={this.props.handleCommentClick(c)}
handleCommentClick: () => action("Clicked"),
Strings,
handleCommentClick: (e) => action("Clicked"),
Strings: Strings,
}

// TODO: Load dataset with hundreds/thousands of comments.
Expand Down

0 comments on commit 39cfc28

Please sign in to comment.