@woosmap/ui 4.162.16 → 4.162.18

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.16",
3
+ "version": "4.162.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -41,10 +41,8 @@ class PricingSimulator extends Component {
41
41
  Object.keys(sliders[category]).forEach((pricingKey) => {
42
42
  const { discountEligible } = PricingData[category].pricings[pricingKey];
43
43
  const { amount, computedQueries } = sliders[category][pricingKey];
44
- console.log(pricingKey, amount, computedQueries);
45
44
  if (typeof amount !== 'number' || typeof computedQueries !== 'number') {
46
45
  if (computedQueries === '∞') {
47
- console.log(pricingKey, "contact sale");
48
46
  contactSale = true;
49
47
  }
50
48
  return;
@@ -66,6 +64,11 @@ class PricingSimulator extends Component {
66
64
  return { total, freeQueriesTotal, notEligibleTotal, eligibleTotal, contactSale };
67
65
  };
68
66
 
67
+ getAnchor = (string) => {
68
+ console.log(string);
69
+ return string.replace(' ', '_').replace('/', '_').toUpperCase();
70
+ };
71
+
69
72
  render() {
70
73
  const { sliders } = this.state;
71
74
  const { publicMode, currency } = this.props;
@@ -75,18 +78,17 @@ class PricingSimulator extends Component {
75
78
  if (contactSale) {
76
79
  totalDisplayed = 'Contact Sale';
77
80
  suggestedPlan = 'Enterprise';
78
- } else if (notEligibleTotal === 0 && freeQueriesTotal && freeQueriesTotal < 10000) {
81
+ } else if (notEligibleTotal === 0 && freeQueriesTotal !== false && freeQueriesTotal < 10000) {
79
82
  totalDisplayed = `0${currency}`;
80
83
  suggestedPlan = 'Free';
81
84
  }
82
- console.log(total, contactSale, suggestedPlan, freeQueriesTotal, notEligibleTotal);
83
85
  return (
84
86
  <>
85
87
  <div className="pricing-nav">
86
88
  <ul className="pricing-menu">
87
89
  {Object.keys(PricingData).map((category) => (
88
90
  <li className="pricing-menu__item">
89
- <a href={`#${category}`}>{category}</a>
91
+ <a href={`#${this.getAnchor(category)}`}>{category}</a>
90
92
  </li>
91
93
  ))}
92
94
  </ul>
@@ -98,7 +100,7 @@ class PricingSimulator extends Component {
98
100
  <div className="pricing-simulator__wrapper">
99
101
  {Object.keys(PricingData).map((category) => (
100
102
  <div className="pricing-simulator__item">
101
- <div className="pricing-simulator__header" id={category}>
103
+ <div className="pricing-simulator__header" id={this.getAnchor(category)}>
102
104
  <div>
103
105
  <img
104
106
  className="pricing-simulator__prod-img"