Added comments to news items

This commit is contained in:
mrfry 2021-03-04 21:31:32 +01:00
parent 64697efc96
commit 71911063b0
9 changed files with 357 additions and 22 deletions

View file

@ -5,6 +5,7 @@ import Tooltip from './tooltip.js'
import styles from './reactButton.module.css'
import reactions from '../data/reactions.json'
// TODO: fixdis
const breakEvery = 7
function ExistingReacts({ existingReacts, onClick, uid }) {
@ -20,6 +21,7 @@ function ExistingReacts({ existingReacts, onClick, uid }) {
}
return (
<div
title={currReact.join(', ')}
className={`${currReact.includes(uid) && styles.reacted}`}
key={key}
onClick={() => {
@ -78,6 +80,7 @@ export default function ReactButton({ onClick, existingReacts, uid }) {
return (
<div
className={styles.reactContainer}
onMouseEnter={() => {
setOpened(true)
}}