refactor ui settings menu to use shared components
This commit is contained in:
parent
2ad0ac3491
commit
1359daec67
8 changed files with 130 additions and 273 deletions
|
@ -1,9 +1,5 @@
|
|||
import { Difficulty } from 'shared/components/designs/difficulty.mjs'
|
||||
|
||||
const ListValue = ({ current, t, config, changed }) =>
|
||||
changed
|
||||
? t(`ui-settings:${config.valueTitles[current]}`)
|
||||
: t(`ui-settings:${config.valueTitles[config.dflt]}`)
|
||||
import { ListValue } from '../shared/values.mjs'
|
||||
|
||||
export const RendererSettingValue = ListValue
|
||||
export const InspectSettingValue = ListValue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue