@woosmap/ui 4.164.7 → 4.164.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -114,6 +114,7 @@ class PricingSlider extends Component {
|
|
|
114
114
|
const computedQueries = this.computeQueries(queries);
|
|
115
115
|
const formatedQueries = computedQueries === '∞' ? computedQueries : numeral(computedQueries).format('0.[0]a');
|
|
116
116
|
const amount = this.computeAmount(displayedPricing, computedQueries);
|
|
117
|
+
const aboveLastTier = formatedQueries === '∞' ? `>${numeral(displayedPricing[displayedPricing.length-2][0]).format('0.[0]a')}` : null
|
|
117
118
|
|
|
118
119
|
return {
|
|
119
120
|
queries,
|
|
@@ -124,6 +125,7 @@ class PricingSlider extends Component {
|
|
|
124
125
|
name,
|
|
125
126
|
discountEligible: productPricing.discountEligible,
|
|
126
127
|
displayedPricing,
|
|
128
|
+
aboveLastTier
|
|
127
129
|
};
|
|
128
130
|
};
|
|
129
131
|
|
|
@@ -137,7 +139,7 @@ class PricingSlider extends Component {
|
|
|
137
139
|
render() {
|
|
138
140
|
const { name, productPricing, currency, values, id } = this.props;
|
|
139
141
|
const { queries } = values;
|
|
140
|
-
const { displayedPricing, amount, formatedQueries, marks, computedQueries } = this.getDisplayedData(queries);
|
|
142
|
+
const { displayedPricing, amount, formatedQueries, marks, computedQueries, aboveLastTier } = this.getDisplayedData(queries);
|
|
141
143
|
|
|
142
144
|
let displayedAmount = <span className="amount">{`0${currency}`}</span>;
|
|
143
145
|
if (amount === '∞') {
|
|
@@ -164,7 +166,7 @@ class PricingSlider extends Component {
|
|
|
164
166
|
renderThumb={(props) => (
|
|
165
167
|
<div {...props}>
|
|
166
168
|
<span>
|
|
167
|
-
<span>{formatedQueries} </span>
|
|
169
|
+
<span>{aboveLastTier ? aboveLastTier : formatedQueries} </span>
|
|
168
170
|
</span>
|
|
169
171
|
</div>
|
|
170
172
|
)}
|
|
@@ -179,7 +181,7 @@ class PricingSlider extends Component {
|
|
|
179
181
|
/>
|
|
180
182
|
<div className="pricing-slider__queries">
|
|
181
183
|
<div className="pricing-slider__queries__label">{productPricing.unit}</div>
|
|
182
|
-
<Input type="text" onChange={this.reverseComputeQueries} value={computedQueries} />
|
|
184
|
+
<Input type="text" onChange={this.reverseComputeQueries} value={aboveLastTier ? aboveLastTier : computedQueries} />
|
|
183
185
|
</div>
|
|
184
186
|
<div className="pricing-slider__price">{displayedAmount}</div>
|
|
185
187
|
</div>
|