From 69dbdce33706f71381517b0f1a00e1d4cb6ba157 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 27 Sep 2021 16:25:51 +0800 Subject: [PATCH] Comment: add option to hide the actions section --- ui/component/comment/view.jsx | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/ui/component/comment/view.jsx b/ui/component/comment/view.jsx index b52003bcf..b4816303a 100644 --- a/ui/component/comment/view.jsx +++ b/ui/component/comment/view.jsx @@ -52,6 +52,7 @@ type Props = { doToast: ({ message: string }) => void, isTopLevel?: boolean, threadDepth: number, + hideActions?: boolean, isPinned: boolean, othersReacts: ?{ like: number, @@ -95,6 +96,7 @@ function Comment(props: Props) { doToast, isTopLevel, threadDepth, + hideActions, isPinned, othersReacts, playingUri, @@ -348,18 +350,20 @@ function Comment(props: Props) { )} -
- {threadDepth !== 0 && ( -
+ {!hideActions && ( +
+ {threadDepth !== 0 && ( +
+ )} {numDirectReplies > 0 && !showReplies && (