feat(shared): implemented log view
This commit is contained in:
parent
0a8cedd23f
commit
9ffb4f5261
21 changed files with 316 additions and 279 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue