@woosmap/ui 4.220.5 → 4.220.6
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
|
@@ -161,7 +161,23 @@ export default class PricingSlider extends Component {
|
|
|
161
161
|
<td>{unit}</td>
|
|
162
162
|
<td>{tr('Cost per 1000')}</td>
|
|
163
163
|
</tr>
|
|
164
|
-
{displayedPricing.
|
|
164
|
+
{displayedPricing.map((tier, index) => {
|
|
165
|
+
if (index === displayedPricing.length - 1) {
|
|
166
|
+
return (
|
|
167
|
+
<tr>
|
|
168
|
+
<td>{`${numeral(displayedPricing[displayedPricing.length - 1][0]).format('0.[0]a')}+`}</td>
|
|
169
|
+
<td>Contact us for discount</td>
|
|
170
|
+
</tr>
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
if (index === displayedPricing.length - 2) {
|
|
174
|
+
return (
|
|
175
|
+
<tr>
|
|
176
|
+
<td>{`${numeral(displayedPricing[displayedPricing.length - 2][0]).format('0.[0]a')}+`}</td>
|
|
177
|
+
<td>{this.displayAmount(tier[1])}</td>
|
|
178
|
+
</tr>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
165
181
|
const lower = index > 0 ? displayedPricing[index - 1][0] : 0;
|
|
166
182
|
return (
|
|
167
183
|
<tr>
|
|
@@ -170,12 +186,6 @@ export default class PricingSlider extends Component {
|
|
|
170
186
|
</tr>
|
|
171
187
|
);
|
|
172
188
|
})}
|
|
173
|
-
{displayedPricing[displayedPricing.length - 1] ? (
|
|
174
|
-
<tr>
|
|
175
|
-
<td>{`${numeral(displayedPricing[displayedPricing.length - 1][0]).format('0.[0]a')} to ∞`}</td>
|
|
176
|
-
<td>Contact us for discount</td>
|
|
177
|
-
</tr>
|
|
178
|
-
) : null}
|
|
179
189
|
</table>
|
|
180
190
|
</div>
|
|
181
191
|
);
|