wip(lab): Added reveal buttons
This commit is contained in:
parent
e5df2a5ab8
commit
06e2e11438
2 changed files with 19 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Chevron } from 'shared/components/navigation/primary.js'
|
||||
import ClearIcon from 'shared/components/icons/clear.js'
|
||||
import SearchIcon from 'shared/components/icons/search.js'
|
||||
import { Ul, Li, Details, Summary, SumDiv, Deg } from 'shared/components/workbench/menu'
|
||||
import Path from './path.js'
|
||||
import Point from './point.js'
|
||||
|
@ -59,6 +60,24 @@ const XrayList = props => {
|
|||
<Deg />
|
||||
<span>{id}</span>
|
||||
</SumDiv>
|
||||
<button
|
||||
className={`px-3 hover:text-secondary-focus"
|
||||
${props.gist.xray.reveal[props.partName][type][id]
|
||||
? 'text-accent'
|
||||
: 'text-secondary'
|
||||
}`}
|
||||
onClick={props.gist.xray.reveal[props.partName][type][id]
|
||||
? () => props.unsetGist(
|
||||
['xray', 'reveal', props.partName, type, id]
|
||||
)
|
||||
: () => props.updateGist(
|
||||
['xray', 'reveal', props.partName, type, id],
|
||||
id
|
||||
)
|
||||
}
|
||||
>
|
||||
<SearchIcon />
|
||||
</button>
|
||||
<button
|
||||
className="text-accent px-3 hover:text-secondary-focus"
|
||||
onClick={() => props.unsetGist(['xray', 'parts', props.partName, type, id])}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { Ul, Li, Details, Summary, NoSumDiv, Deg } from 'shared/components/workbench/menu'
|
||||
import ClearIcon from 'shared/components/icons/clear.js'
|
||||
import Attributes from './attributes.js'
|
||||
import Ops from './path-ops.js'
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue