How to use the @freesewing/utils/optionType function in @freesewing/utils

To help you get started, we’ve selected a few @freesewing/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github freesewing / freesewing / packages / components / src / DraftConfigurator / OptionGroup / index.js View on Github external
const renderOption = (name, sub = false) => {
    let option = props.config.options[name]
    let type = optionType(option)
    let stringKey = `options.${props.config.name}.${name}.`
    let extraProps = {
      name,
      dflt: optionDefault(name, props.config.options[name], props.recipe),
      patternDflt: optionDefault(name, props.config.options[name]),
      units: props.units,
      updateValue: props.updateValue,
      raiseEvent: props.raiseEvent,
      title: ,
      desc: ,
      intl: props.intl,
      pattern: props.config.name,
      key: name,
      noDocs: props.noDocs
    }
    if (