@woosmap/ui 4.162.18 → 4.162.20

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.162.18",
3
+ "version": "4.162.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -61,18 +61,15 @@ 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
- getAnchor = (string) => {
68
- console.log(string);
69
- return string.replace(' ', '_').replace('/', '_').toUpperCase();
70
- };
67
+ getAnchor = (string) => string.replace(' ', '_').replace('/', '_').toUpperCase();
71
68
 
72
69
  render() {
73
70
  const { sliders } = this.state;
74
71
  const { publicMode, currency } = this.props;
75
- const { total, freeQueriesTotal, notEligibleTotal, contactSale } = this.computeTotal();
72
+ const { total, discount, freeQueriesTotal, notEligibleTotal, contactSale } = this.computeTotal();
76
73
  let totalDisplayed = total + currency;
77
74
  let suggestedPlan = 'Pro';
78
75
  if (contactSale) {
@@ -94,7 +91,11 @@ class PricingSimulator extends Component {
94
91
  </ul>
95
92
  <div className="pricing-total">
96
93
  <div className="pricing-total__label">Monthly price</div>
97
- <div className="pricing-total__amount">{`${totalDisplayed} (${suggestedPlan})`}</div>
94
+ <div className="pricing-total__amount">{totalDisplayed}</div>
95
+ <div className="pricing-total__info">
96
+ <span className="pricing-total__discount">{`(-${discount}${currency} discount applied)`}</span>
97
+ <span className="pricing-total__plan">{suggestedPlan}</span>
98
+ </div>
98
99
  </div>
99
100
  </div>
100
101
  <div className="pricing-simulator__wrapper">