fix hierarchical tag toggle

This commit is contained in:
Lachlan Kermode
2020-06-23 11:49:14 +02:00
parent 51b0f4a115
commit e5dff2ad86
2 changed files with 18 additions and 10 deletions

View File

@@ -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>