diff --git a/ui/component/commentReactions/view.jsx b/ui/component/commentReactions/view.jsx index cb043db7d..5aa5fad2c 100644 --- a/ui/component/commentReactions/view.jsx +++ b/ui/component/commentReactions/view.jsx @@ -1,10 +1,10 @@ // @flow -import * as ICONS from 'constants/icons'; -import * as REACTION_TYPES from 'constants/reactions'; -import React from 'react'; -import classnames from 'classnames'; -import Button from 'component/button'; -import usePersistedState from 'effects/use-persisted-state'; +// import * as ICONS from 'constants/icons'; +// import * as REACTION_TYPES from 'constants/reactions'; +// import React from 'react'; +// import classnames from 'classnames'; +// import Button from 'component/button'; +// import usePersistedState from 'effects/use-persisted-state'; type Props = { myReacts: Array, @@ -15,42 +15,44 @@ type Props = { }; export default function CommentReactions(props: Props) { - const { myReacts, othersReacts, commentId, react, typesReacting } = props; - const [activeChannel] = usePersistedState('comment-channel'); + // const { myReacts, othersReacts, commentId, react, typesReacting } = props; + // const [activeChannel] = usePersistedState('comment-channel'); - const getCountForReact = type => { - let count = 0; - if (othersReacts && othersReacts[type]) { - count += othersReacts[type]; - } - if (myReacts && myReacts.includes(type)) { - count += 1; - } - return count; - }; + // const getCountForReact = type => { + // let count = 0; + // if (othersReacts && othersReacts[type]) { + // count += othersReacts[type]; + // } + // if (myReacts && myReacts.includes(type)) { + // count += 1; + // } + // return count; + // }; - return ( - <> - )} @@ -252,7 +255,7 @@ const Header = (props: Props) => { > - + {notificationsEnabled && } history.push(`/$/${PAGES.UPLOAD}`)}>