bug: hide dislike if reactions disabled

This commit is contained in:
Kieran 2023-01-24 15:34:56 +00:00
parent e6a831ef8c
commit 446be363f6
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -148,14 +148,14 @@ export default function NoteFooter(props: NoteFooterProps) {
function menuItems() {
return (
<>
<MenuItem onClick={() => react("-")}>
{prefs.enableReactions && (<MenuItem onClick={() => react("-")}>
<div>
<FontAwesomeIcon icon={faThumbsDown} className={hasReacted('-') ? 'reacted' : ''} />
&nbsp;
{formatShort(groupReactions[Reaction.Negative])}
</div>
Dislike
</MenuItem>
</MenuItem>)}
<MenuItem onClick={() => share()}>
<FontAwesomeIcon icon={faShareNodes} />
Share