From 39cfc280ee75afe6763ce2820367bfc932a62501 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Thu, 26 Sep 2024 22:17:28 -0400 Subject: [PATCH] Added mention of a bug with onClick in TidCarousel. --- stories/client-participation/TidCarousel.stories.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stories/client-participation/TidCarousel.stories.js b/stories/client-participation/TidCarousel.stories.js index 8057801..232a3df 100644 --- a/stories/client-participation/TidCarousel.stories.js +++ b/stories/client-participation/TidCarousel.stories.js @@ -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.