1
0
Fork 0

feat(shared): implemented log view

This commit is contained in:
joostdecock 2023-06-10 20:33:34 +02:00
parent 0a8cedd23f
commit 9ffb4f5261
21 changed files with 316 additions and 279 deletions

View file

@ -15,8 +15,22 @@ export const ControlSettingInput = (props) => {
)
}
const ViewInput = (props) => {
const { selection, update } = useControlState()
props.config.dflt = props.view
return (
<ListInput
{...props}
updateFunc={(path, newVal) => props.setView(newVal)}
current={props.view}
/>
)
}
export const inputs = {
renderer: ListInput,
inspect: BoolInput,
control: ControlSettingInput,
view: ViewInput,
}