@woosmap/ui 4.228.5 → 4.228.7
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
|
@@ -230,12 +230,12 @@ export default class PricingSlider extends Component {
|
|
|
230
230
|
return this.displayAmount(amount);
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
-
displayCompetitorDetails = (amountGmp
|
|
233
|
+
displayCompetitorDetails = (amountGmp) => (
|
|
234
234
|
<div className="pricing-slider__detailed-price">
|
|
235
235
|
<table>
|
|
236
236
|
<tr>
|
|
237
237
|
<td>
|
|
238
|
-
<strong>
|
|
238
|
+
<strong>Competitor</strong>
|
|
239
239
|
</td>
|
|
240
240
|
<td>
|
|
241
241
|
<strong>{tr('Estimated cost')}</strong>
|
|
@@ -247,10 +247,10 @@ export default class PricingSlider extends Component {
|
|
|
247
247
|
<td>{this.displayCompetitorAmount(amountGmp)}</td>
|
|
248
248
|
</tr>
|
|
249
249
|
|
|
250
|
-
<tr>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
</tr>
|
|
250
|
+
{/* <tr> */}
|
|
251
|
+
{/* <td>Mapbox</td> */}
|
|
252
|
+
{/* <td>{this.displayCompetitorAmount(amountMbx)}</td> */}
|
|
253
|
+
{/* </tr> */}
|
|
254
254
|
</table>
|
|
255
255
|
</div>
|
|
256
256
|
);
|
|
@@ -267,7 +267,6 @@ export default class PricingSlider extends Component {
|
|
|
267
267
|
computedQueries,
|
|
268
268
|
aboveLastTier,
|
|
269
269
|
amountGmp,
|
|
270
|
-
amountMbx,
|
|
271
270
|
} = this.getDisplayedData(queries);
|
|
272
271
|
|
|
273
272
|
let displayedAmount = <span className="amount">{this.displayAmount(0)}</span>;
|
|
@@ -344,11 +343,11 @@ export default class PricingSlider extends Component {
|
|
|
344
343
|
/>
|
|
345
344
|
|
|
346
345
|
<Button
|
|
347
|
-
className="pricing-
|
|
346
|
+
className="pricing-slider__competitor-price-btnn"
|
|
348
347
|
iconRight
|
|
349
348
|
type="toggle"
|
|
350
349
|
disabled={queries === 0}
|
|
351
|
-
label={tr('
|
|
350
|
+
label={tr('See how we compare')}
|
|
352
351
|
icon={displayCompetitors ? 'caret-top' : 'caret-bottom'}
|
|
353
352
|
onClick={() =>
|
|
354
353
|
this.setState(
|
|
@@ -360,7 +359,7 @@ export default class PricingSlider extends Component {
|
|
|
360
359
|
}
|
|
361
360
|
/>
|
|
362
361
|
|
|
363
|
-
{displayCompetitors && this.displayCompetitorDetails(amountGmp
|
|
362
|
+
{displayCompetitors && this.displayCompetitorDetails(amountGmp)}
|
|
364
363
|
{displayDetailed && this.displayDetails(displayedPricing, productPricing.unit)}
|
|
365
364
|
</div>
|
|
366
365
|
)}
|
|
@@ -396,5 +395,6 @@ PricingSlider.propTypes = {
|
|
|
396
395
|
id: PropTypes.string.isRequired,
|
|
397
396
|
planId: PropTypes.string.isRequired,
|
|
398
397
|
hlPricings: PropTypes.object.isRequired,
|
|
398
|
+
displayCompetitors: PropTypes.string.isRequired,
|
|
399
|
+
displayCompetitorsCallback: PropTypes.func.isRequired,
|
|
399
400
|
};
|
|
400
|
-
|