How to use the @freesewing/utils.formatMm 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 / .form / FormFieldMeasurement / index.js View on Github external
const FormFieldMeasurement = props => {
  const update = evt => {
    props.updateValue(
      props.name,
      measurementAsMm(evt.target.value, props.units)
    );
  };

  return (
    
            {measurementAsMm(props.value, props.units) === false ? (
              
            ) : (
              
                {props.units === "imperial" ? '"' : "cm"}
              
            )}
          
        )
      }}
    />