This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit caadd99b68665485b7eaac6bc59ead8d03d839e2 Author: hgaol <[email protected]> AuthorDate: Thu May 9 23:09:35 2024 +0800 update --- .../Questions/Detail/components/Reactions/index.tsx | 16 ---------------- 1 file changed, 16 deletions(-) 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">
