@woosmap/ui 4.175.1 → 4.175.2
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
|
@@ -43,7 +43,7 @@ export default class Button extends Component {
|
|
|
43
43
|
{ 'btn--loading': isLoading },
|
|
44
44
|
{ 'btn--no-label': !label },
|
|
45
45
|
{ 'btn--custom-icon-size': iconSize && iconSize !== 22 },
|
|
46
|
-
className
|
|
46
|
+
className,
|
|
47
47
|
);
|
|
48
48
|
let iconComponent = icon ? <Icon isFill={isFillIcon} size={iconSize} icon={icon} /> : null;
|
|
49
49
|
if (isLoading) {
|
|
@@ -20,7 +20,6 @@ import indoorImg from '../../images/products/product-indoor.png';
|
|
|
20
20
|
import what3wordsImg from '../../images/products/product-what3words.png';
|
|
21
21
|
import transitImg from '../../images/products/product-transit.png';
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
import datasetsImgSq from '../../images/products/product-datasets-sq.png';
|
|
25
24
|
import localitiesImgSq from '../../images/products/product-localities-sq.png';
|
|
26
25
|
import localitiesUkImgSq from '../../images/products/product-localities-uk-sq.png';
|
|
@@ -98,7 +98,8 @@ export default class PricingSimulator extends Component {
|
|
|
98
98
|
<div className="pricing-total__info">
|
|
99
99
|
{!contactSale && (
|
|
100
100
|
<span className="pricing-total__discount">
|
|
101
|
-
{`(-${discount
|
|
101
|
+
{`(-${this.displayAmount(discount, currency)} Monthly Free Usage)`} ={' '}
|
|
102
|
+
{totalDisplayed}
|
|
102
103
|
</span>
|
|
103
104
|
)}
|
|
104
105
|
</div>
|
|
@@ -154,18 +154,18 @@ export default class PricingSlider extends Component {
|
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
displayDetails = (displayedPricing) => (
|
|
157
|
+
displayDetails = (displayedPricing, unit) => (
|
|
158
158
|
<div className="pricing-slider__detailed-price">
|
|
159
159
|
<table>
|
|
160
160
|
<tr>
|
|
161
|
-
<td>{
|
|
161
|
+
<td>{unit}</td>
|
|
162
162
|
<td>{tr('Cost per 1000')}</td>
|
|
163
163
|
</tr>
|
|
164
164
|
{displayedPricing.map((tier, index) => {
|
|
165
165
|
const lower = index > 0 ? displayedPricing[index - 1][0] : 0;
|
|
166
166
|
return (
|
|
167
167
|
<tr>
|
|
168
|
-
<td>{`${lower} to ${tier[0]}`}</td>
|
|
168
|
+
<td>{`${numeral(lower).format('0.[0]a')} to ${numeral(tier[0]).format('0.[0]a')}`}</td>
|
|
169
169
|
<td>{this.displayAmount(tier[1])}</td>
|
|
170
170
|
</tr>
|
|
171
171
|
);
|
|
@@ -254,7 +254,7 @@ export default class PricingSlider extends Component {
|
|
|
254
254
|
</div>
|
|
255
255
|
<div className="pricing-slider__price">{displayedAmount}</div>
|
|
256
256
|
</div>
|
|
257
|
-
{displayDetailed && this.displayDetails(displayedPricing)}
|
|
257
|
+
{displayDetailed && this.displayDetails(displayedPricing, productPricing.unit)}
|
|
258
258
|
</div>
|
|
259
259
|
);
|
|
260
260
|
}
|