fix: Value of scale core setting
This commit is contained in:
parent
241e5ce336
commit
cc3d9e74a8
1 changed files with 5 additions and 3 deletions
|
@ -50,7 +50,7 @@ export const MenuDegOptionValue = ({ config, current, changed }) => (
|
||||||
* @param {Function} children - The React children
|
* @param {Function} children - The React children
|
||||||
*/
|
*/
|
||||||
export const MenuHighlightValue = ({ changed, children }) => (
|
export const MenuHighlightValue = ({ changed, children }) => (
|
||||||
<span className={changed ? 'text-accent' : ''}> {children} </span>
|
<span className={changed ? 'tw-text-accent' : ''}> {children} </span>
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -148,12 +148,14 @@ export const MenuShowValue = ({ current, dflt, changed }) => {
|
||||||
/**
|
/**
|
||||||
* Displays the value for core's scale setting
|
* Displays the value for core's scale setting
|
||||||
*
|
*
|
||||||
* @param {object} config - The option config
|
|
||||||
* @param {number} current - The current (count) value
|
* @param {number} current - The current (count) value
|
||||||
|
* @param {Object} options.config the item config
|
||||||
* @param {bool} changed - Whether or not the value is non-default
|
* @param {bool} changed - Whether or not the value is non-default
|
||||||
*/
|
*/
|
||||||
export const MenuScaleSettingValue = ({ current, config, changed }) => (
|
export const MenuScaleSettingValue = ({ current, config, changed }) => (
|
||||||
<MenuHighlightValue current={current} dflt={config.dflt} changed={changed} />
|
<MenuHighlightValue changed={changed}>
|
||||||
|
{typeof current === 'undefined' ? config.dflt : current}
|
||||||
|
</MenuHighlightValue>
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue