diff --git a/space/components/issues/peek-overview/comment/comment-reactions.tsx b/space/components/issues/peek-overview/comment/comment-reactions.tsx index 7ec5c73b0..4045d3edf 100644 --- a/space/components/issues/peek-overview/comment/comment-reactions.tsx +++ b/space/components/issues/peek-overview/comment/comment-reactions.tsx @@ -6,7 +6,7 @@ import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; // ui -import { ReactionSelector } from "components/ui"; +import { ReactionSelector, Tooltip } from "components/ui"; // helpers import { groupReactions, renderEmoji } from "helpers/emoji.helper"; @@ -77,41 +77,55 @@ export const CommentReactions: React.FC = observer((props) => { size="md" /> - {Object.keys(groupedReactions || {}).map( - (reaction) => - groupedReactions?.[reaction]?.length && - groupedReactions[reaction].length > 0 && ( - - ) - )} + {renderEmoji(reaction)} + r.actor_detail.id === userStore.currentUser?.id && r.reaction === reaction + ) + ? "text-custom-primary-100" + : "" + } + > + {groupedReactions?.[reaction].length}{" "} + + + + ); + })} ); });