Commit 3d3af209 authored by Roman's avatar Roman

BRCD-1683 fix(FieldRanges) - in view mode display values in one line seperated by comma

parent f541041d
......@@ -7,16 +7,6 @@ class Range extends PureComponent {
static propTypes = {
value: PropTypes.instanceOf(Immutable.Map),
// value: PropTypes.shape({
// from: PropTypes.oneOfType([
// PropTypes.string,
// PropTypes.number,
// ]),
// to: PropTypes.oneOfType([
// PropTypes.string,
// PropTypes.number,
// ]),
// }),
inputProps: PropTypes.object,
editable: PropTypes.bool,
placeholder: PropTypes.oneOfType([
......@@ -96,7 +86,7 @@ class Range extends PureComponent {
);
}
return (
<div className="non-editable-field">{ `${valueFrom} - ${valueTo}` }</div>
<span className="non-editable-field">{`${valueFrom} - ${valueTo}`}</span>
);
}
......
......@@ -67,7 +67,10 @@ class Ranges extends PureComponent {
return (
<span>
{value.map((rangeValue, index) => (
<Range key={`range_${id}_${index}`} value={rangeValue} editable={false} />
<span key={`range_${id}_${index}`}>
{index > 0 && ", "}
<Range value={rangeValue} editable={false} />
</span>
))}
</span>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment