mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-19 00:38:35 +03:00
fix hierarchical tag toggle
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import React, { useState } from 'react'
|
||||
|
||||
export default ({ showing, onClickHandler, timelineDims }) => {
|
||||
const [checked, setChecked] = useState(true)
|
||||
const handleCheck = () => setChecked(!checked)
|
||||
const onNarrativise = () => onClickHandler(checked)
|
||||
|
||||
if (!showing) {
|
||||
return null
|
||||
}
|
||||
|
||||
const [checked, setChecked] = useState(true)
|
||||
const handleCheck = () => setChecked(!checked)
|
||||
const onNarrativise = () => onClickHandler(checked)
|
||||
|
||||
return <div className='stateoptions-panel' style={{ bottom: timelineDims.height }}>
|
||||
<div>
|
||||
<div className='button' onClick={onNarrativise}>Narrativise</div>
|
||||
|
||||
Reference in New Issue
Block a user