How to use the @commercetools-uikit/calendar-utils.createItemRangeToString function in @commercetools-uikit/calendar-utils

To help you get started, we’ve selected a few @commercetools-uikit/calendar-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 commercetools / ui-kit / src / components / inputs / date-range-input / date-range-input.js View on Github external
render() {
    return (
      
         {
            // only attempt to parse input when the user typed into the input
            // field
            if (changes.type !== Downshift.stateChangeTypes.changeInput) return;

            this.setState(() => {
              const parsedRange = parseRangeText(
                inputValue,
                this.props.intl.locale
              );
              if (parsedRange.length === 0)
                return {
                  suggestedItems: [],