From 01880160dcbe0b7f334680f9bde01438defed178 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Sat, 27 Aug 2022 15:23:29 -0700 Subject: [PATCH] Kill now unhelpful `CommentRepliesList` wrapper component --- web/components/feed/contract-activity.tsx | 1 - .../feed/feed-answer-comment-group.tsx | 27 ++++--- web/components/feed/feed-comments.tsx | 76 +++++-------------- 3 files changed, 34 insertions(+), 70 deletions(-) diff --git a/web/components/feed/contract-activity.tsx b/web/components/feed/contract-activity.tsx index 27ec2a47..1be2b7a8 100644 --- a/web/components/feed/contract-activity.tsx +++ b/web/components/feed/contract-activity.tsx @@ -139,7 +139,6 @@ export function FreeResponseContractCommentsActivity(props: { answer={answer} answerComments={commentsByOutcome[answer.number.toString()]} tips={tips} - bets={bets} betsByUserId={betsByUserId} commentsByUserId={commentsByUserId} /> diff --git a/web/components/feed/feed-answer-comment-group.tsx b/web/components/feed/feed-answer-comment-group.tsx index 0f30d807..7984872b 100644 --- a/web/components/feed/feed-answer-comment-group.tsx +++ b/web/components/feed/feed-answer-comment-group.tsx @@ -11,7 +11,7 @@ import { Linkify } from 'web/components/linkify' import clsx from 'clsx' import { CommentInput, - CommentRepliesList, + FeedComment, getMostRecentCommentableBet, } from 'web/components/feed/feed-comments' import { CopyLinkDateTimeComponent } from 'web/components/feed/copy-link-date-time' @@ -27,7 +27,6 @@ export function FeedAnswerCommentGroup(props: { answer: Answer answerComments: ContractComment[] tips: CommentTipMap - bets: Bet[] betsByUserId: Dictionary commentsByUserId: Dictionary }) { @@ -36,7 +35,6 @@ export function FeedAnswerCommentGroup(props: { contract, answerComments, tips, - bets, betsByUserId, commentsByUserId, user, @@ -160,17 +158,18 @@ export function FeedAnswerCommentGroup(props: { )} - - + {answerComments.map((comment) => ( + + ))} {showReply && (