1
0
Fork 0

refactor ui settings menu to use shared components

This commit is contained in:
Enoch Riese 2023-06-02 12:13:49 -05:00
parent 2ad0ac3491
commit 1359daec67
8 changed files with 130 additions and 273 deletions

View file

@ -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