1
0
Fork 0
freesewing/sites/shared/components/workbench/menus/ui-settings/inputs.mjs
Joost De Cock ddbbbda2bc chore(shared): Changes kiosk/expand/flags/header
- Revamped the flags ui to be consistent with the rest
- The expand setting is on by default now. Tweaks to its dialog and
  header
- Added a new kiosk mode that will use the entire screen for the
  workbench
- Got rid of the auto-hiding behaviour of the header which gets annoying
  quick
2023-09-09 17:58:44 +02:00

22 lines
515 B
JavaScript

import { ListInput } from '../shared/inputs'
import { useControlState } from 'shared/components/account/control.mjs'
export const ControlSettingInput = (props) => {
const { selection, update } = useControlState()
props.config.dflt = selection
return (
<ListInput
{...props}
updateFunc={(path, newVal) => update(newVal)}
current={selection}
compact={selection < 2}
/>
)
}
export const inputs = {
control: ControlSettingInput,
kiosk: ListInput,
renderer: ListInput,
}