@woosmap/ui 4.226.6 → 4.226.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
|
@@ -94,7 +94,6 @@ export default class PricingSlider extends Component {
|
|
|
94
94
|
);
|
|
95
95
|
|
|
96
96
|
renderMarks = (props) => {
|
|
97
|
-
const { publicMode } = this.props;
|
|
98
97
|
const displayedPricing = this.getDisplayedPricing();
|
|
99
98
|
|
|
100
99
|
let value;
|
|
@@ -102,7 +101,7 @@ export default class PricingSlider extends Component {
|
|
|
102
101
|
value = 0;
|
|
103
102
|
} else {
|
|
104
103
|
const index = props.key / 100000 - 1;
|
|
105
|
-
if (index === displayedPricing.length - 1
|
|
104
|
+
if (index === displayedPricing.length - 1) {
|
|
106
105
|
value = '∞';
|
|
107
106
|
} else {
|
|
108
107
|
const tier = displayedPricing[props.key / 100000 - 1];
|
|
@@ -127,10 +126,12 @@ export default class PricingSlider extends Component {
|
|
|
127
126
|
getDisplayedPricing = () => {
|
|
128
127
|
const { productPricing, currency, planId } = this.props;
|
|
129
128
|
const product = this.findProduct(productPricing.productId);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
if (product && product.pricings[planId] && product.pricings[planId][currencyMap[currency]]) {
|
|
130
|
+
const displayedPricing = product.pricings[planId][currencyMap[currency]];
|
|
131
|
+
displayedPricing.append([displayedPricing[displayedPricing.length - 1][0] * 2, null]);
|
|
132
|
+
return displayedPricing;
|
|
133
|
+
}
|
|
134
|
+
return [];
|
|
134
135
|
};
|
|
135
136
|
|
|
136
137
|
getDisplayedData = (queries) => {
|
|
@@ -182,6 +183,14 @@ export default class PricingSlider extends Component {
|
|
|
182
183
|
{displayedPricing.map((tier, index) => {
|
|
183
184
|
const lower = index > 0 ? displayedPricing[index - 1][0] : 0;
|
|
184
185
|
if (index === displayedPricing.length - 1) {
|
|
186
|
+
return (
|
|
187
|
+
<tr>
|
|
188
|
+
<td>{`${numeral(lower).format('0.[0]a')}+`}</td>
|
|
189
|
+
<td>{tr('Contact us for discount')}</td>
|
|
190
|
+
</tr>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
if (index === displayedPricing.length - 2) {
|
|
185
194
|
return (
|
|
186
195
|
<tr>
|
|
187
196
|
<td>{`${numeral(lower).format('0.[0]a')}+`}</td>
|
|
@@ -197,7 +206,6 @@ export default class PricingSlider extends Component {
|
|
|
197
206
|
);
|
|
198
207
|
})}
|
|
199
208
|
</table>
|
|
200
|
-
{displayedPricing.length === 1 && displayedPricing[0][1] === 0 ? null : tr('For more, contact us')}
|
|
201
209
|
</div>
|
|
202
210
|
);
|
|
203
211
|
};
|