From 848495f82a20ff2661c5dd4627bd9e8dc15b29f9 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 29 Sep 2020 16:15:35 -0400 Subject: [PATCH] keep notifications behind flag --- ui/component/commentReactions/view.jsx | 86 +++++++++++++------------- ui/component/commentsList/view.jsx | 16 ++--- ui/component/header/index.js | 3 +- ui/component/header/view.jsx | 7 ++- 4 files changed, 59 insertions(+), 53 deletions(-) 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}`)}>