mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Added comments to news items
This commit is contained in:
parent
64697efc96
commit
71911063b0
9 changed files with 357 additions and 22 deletions
|
@ -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)
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue