Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update

hgaolcaadd99b6866
diff --git a/ui/src/pages/Questions/Detail/components/Reactions/index.tsx b/ui/src/pages/Questions/Detail/components/Reactions/index.tsx
index dc08cf1e..9a47f4bf 100644
--- a/ui/src/pages/Questions/Detail/components/Reactions/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/Reactions/index.tsx
@@ -62,22 +62,6 @@ const Index: FC<Props> = ({
});
};
- // const convertToTooltip = (names: string[]) => {
- // const n: number = Math.min(5, names.length);
- // let ret = '';
- // for (let i = 0; i < n; i += 1) {
- // if (i === n - 1) {
- // ret += names[i];
- // } else {
- // ret += `${names[i]}, `;
- // }
- // }
- // if (names.length > 5) {
- // ret += t('reaction.tooltip', { count: names.length - 5 });
- // }
- // return ret;
- // };
-
const renderTooltip = (props) => (
<Tooltip id="reaction-button-tooltip" {...props} bsPrefix="tooltip">
<div className="d-block d-md-flex flex-wrap m-0 p-0">