@woosmap/ui 4.162.19 → 4.162.21
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
|
@@ -61,7 +61,7 @@ class PricingSimulator extends Component {
|
|
|
61
61
|
const { currency } = this.props;
|
|
62
62
|
const discount = currency === '$' ? 180 : 200;
|
|
63
63
|
const total = notEligibleTotal + Math.max(eligibleTotal - discount, 0);
|
|
64
|
-
return { total, freeQueriesTotal, notEligibleTotal, eligibleTotal, contactSale };
|
|
64
|
+
return { total, freeQueriesTotal, notEligibleTotal, eligibleTotal, contactSale, discount };
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
getAnchor = (string) => string.replace(' ', '_').replace('/', '_').toUpperCase();
|
|
@@ -69,11 +69,11 @@ class PricingSimulator extends Component {
|
|
|
69
69
|
render() {
|
|
70
70
|
const { sliders } = this.state;
|
|
71
71
|
const { publicMode, currency } = this.props;
|
|
72
|
-
const { total, freeQueriesTotal, notEligibleTotal, contactSale } = this.computeTotal();
|
|
72
|
+
const { total, discount, freeQueriesTotal, notEligibleTotal, contactSale } = this.computeTotal();
|
|
73
73
|
let totalDisplayed = total + currency;
|
|
74
74
|
let suggestedPlan = 'Pro';
|
|
75
75
|
if (contactSale) {
|
|
76
|
-
totalDisplayed =
|
|
76
|
+
totalDisplayed = <a href="/en/contact">Contact Sales</a>;
|
|
77
77
|
suggestedPlan = 'Enterprise';
|
|
78
78
|
} else if (notEligibleTotal === 0 && freeQueriesTotal !== false && freeQueriesTotal < 10000) {
|
|
79
79
|
totalDisplayed = `0${currency}`;
|
|
@@ -91,7 +91,13 @@ class PricingSimulator extends Component {
|
|
|
91
91
|
</ul>
|
|
92
92
|
<div className="pricing-total">
|
|
93
93
|
<div className="pricing-total__label">Monthly price</div>
|
|
94
|
-
<div className="pricing-total__amount">{
|
|
94
|
+
<div className="pricing-total__amount">{totalDisplayed}</div>
|
|
95
|
+
<div className="pricing-total__info">
|
|
96
|
+
{suggestedPlan === 'Pro' && (
|
|
97
|
+
<span className="pricing-total__discount">{`(-${discount}${currency} discount applied)`}</span>
|
|
98
|
+
)}
|
|
99
|
+
<span className="pricing-total__plan">{`Suggested Plan : ${suggestedPlan}`}</span>
|
|
100
|
+
</div>
|
|
95
101
|
</div>
|
|
96
102
|
</div>
|
|
97
103
|
<div className="pricing-simulator__wrapper">
|