Import packages/plugin/src/client/fast-mode-switches.ts
This commit is contained in:
parent
dce71c917e
commit
e9ad2d336c
|
|
@ -82,11 +82,13 @@ export function createFastModeSwitches(React: ClientReact) {
|
||||||
}) {
|
}) {
|
||||||
return React.createElement('div', {
|
return React.createElement('div', {
|
||||||
className: props.className ?? 'dshRemoteFastModeSwitches',
|
className: props.className ?? 'dshRemoteFastModeSwitches',
|
||||||
}, TOGGLE_ORDER.map(key => React.createElement(RemoteToggleSwitch, {
|
},
|
||||||
key,
|
React.createElement('span', { className: 'dshRemoteFastModeGroupTitle' }, props.t('fastModeGroupTitle')),
|
||||||
control: props.control,
|
TOGGLE_ORDER.map(key => React.createElement(RemoteToggleSwitch, {
|
||||||
t: props.t,
|
key,
|
||||||
configKey: key,
|
control: props.control,
|
||||||
})))
|
t: props.t,
|
||||||
|
configKey: key,
|
||||||
|
})))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue