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

@ -13,13 +13,13 @@ const UiSetting = ({ name, control, ...rest }) => (
<MenuItem
{...rest}
name={name}
allowToggle={name !== 'control' && control > 3}
allowToggle={!['control', 'view'].includes(name) && control > 3}
control={control}
/>
)
export const UiSettings = ({ update, ui, control, language, DynamicDocs }) => {
const settingsConfig = loadSettingsConfig(ui)
export const UiSettings = ({ update, ui, control, language, DynamicDocs, view, setView }) => {
const settingsConfig = loadSettingsConfig(ui, view)
return (
<WorkbenchMenu
@ -37,6 +37,7 @@ export const UiSettings = ({ update, ui, control, language, DynamicDocs }) => {
name: 'uiSettings',
ns,
updateFunc: update.ui,
passProps: { view, setView },
}}
/>
)