diff --git a/docgen/src/guides/v3-migration.md b/docgen/src/guides/v3-migration.md index 6592f98d72..82be1f0b52 100644 --- a/docgen/src/guides/v3-migration.md +++ b/docgen/src/guides/v3-migration.md @@ -788,9 +788,12 @@ Widget removed. #### Options -| Before | After | -| --------------- | ----------- | -| `attributeName` | `attribute` | +| Before | After | +| ------------------ | ------------------------- | +| `attributeName` | `attribute` | +| `labels` | `templates` | +| `labels.separator` | `templates.separatorText` | +| `labels.submit` | `templates.submitText` | #### CSS classes diff --git a/src/components/RangeInput/RangeInput.js b/src/components/RangeInput/RangeInput.js index 9b9eb40593..60d0a8786e 100644 --- a/src/components/RangeInput/RangeInput.js +++ b/src/components/RangeInput/RangeInput.js @@ -1,6 +1,7 @@ import React, { Component } from 'preact-compat'; import PropTypes from 'prop-types'; import cx from 'classnames'; +import Template from '../Template/Template'; class RangeInput extends Component { constructor(props) { @@ -33,7 +34,7 @@ class RangeInput extends Component { render() { const { min: minValue, max: maxValue } = this.state; - const { min, max, step, cssClasses, labels } = this.props; + const { min, max, step, cssClasses, templateProps } = this.props; const isDisabled = min >= max; const hasRefinements = Boolean(minValue || maxValue); @@ -59,7 +60,14 @@ class RangeInput extends Component { /> - {labels.separator} +