fix(shared): Deal with list option inputs
This commit is contained in:
parent
fc3559a124
commit
e986ec33e9
3 changed files with 13 additions and 26 deletions
|
@ -35,7 +35,7 @@ export const CountOptionValue = ({ name, config, current }) =>
|
|||
)
|
||||
|
||||
export const ListOptionValue = ({ name, config, current, t }) => {
|
||||
const translate = config.doNotTranslate ? (input) => input : (input) => t(`${option}.o.${input}`)
|
||||
const translate = config.doNotTranslate ? (input) => input : (input) => t(`${name}.o.${input}`)
|
||||
|
||||
return config.dflt == current || typeof current === 'undefined' ? (
|
||||
<span className="text-secondary-focus">{translate(config.dflt)}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue