Reaction and frontpage button fixes

This commit is contained in:
mrfry 2021-05-21 09:28:21 +02:00
parent 6dfb8ebfd3
commit 4cc5dbbcf6
7 changed files with 32 additions and 45 deletions

View file

@ -3,9 +3,9 @@ import styles from './tooltip.module.css'
export default function Tooltip({ children, text, opened }) {
return (
<div className={styles.tooltip}>
{text()}
<span className={styles.tooltip}>
{text && text()}
{opened && <span className={styles.tooltiptext}>{children}</span>}
</div>
</span>
)
}