@woosmap/ui 4.226.5 → 4.226.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
|
@@ -163,7 +163,7 @@ export default class PricingSimulator extends Component {
|
|
|
163
163
|
|
|
164
164
|
render() {
|
|
165
165
|
const { sliders } = this.state;
|
|
166
|
-
const { currency, hlPricings } = this.props;
|
|
166
|
+
const { currency, hlPricings, planId } = this.props;
|
|
167
167
|
const { total, contactSale, totalBeforeDiscount } = this.computeTotal();
|
|
168
168
|
const totalDisplayed = this.displayAmount(parseInt(total, 10), currency);
|
|
169
169
|
// if (contactSale) {
|
|
@@ -225,6 +225,7 @@ export default class PricingSimulator extends Component {
|
|
|
225
225
|
values={sliders[category][pricingKey]}
|
|
226
226
|
onChange={this.onChange(category, pricingKey)}
|
|
227
227
|
hlPricings={hlPricings}
|
|
228
|
+
planId={planId}
|
|
228
229
|
/>
|
|
229
230
|
);
|
|
230
231
|
})}
|
|
@@ -261,9 +262,10 @@ export default class PricingSimulator extends Component {
|
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
264
|
|
|
264
|
-
PricingSimulator.defaultProps = { currency: '€' };
|
|
265
|
+
PricingSimulator.defaultProps = { currency: '€', planId: 'plan_ohNpgeVMtJ3veT' };
|
|
265
266
|
|
|
266
267
|
PricingSimulator.propTypes = {
|
|
267
268
|
currency: PropTypes.string,
|
|
268
269
|
hlPricings: PropTypes.object.isRequired,
|
|
270
|
+
planId: PropTypes.string,
|
|
269
271
|
};
|
|
@@ -296,7 +296,6 @@ export default class PricingSlider extends Component {
|
|
|
296
296
|
PricingSlider.defaultProps = {
|
|
297
297
|
defaultQueries: 1500,
|
|
298
298
|
onChange: null,
|
|
299
|
-
planId: 'plan_ohNpgeVMtJ3veT',
|
|
300
299
|
};
|
|
301
300
|
|
|
302
301
|
PricingSlider.propTypes = {
|
|
@@ -308,6 +307,6 @@ PricingSlider.propTypes = {
|
|
|
308
307
|
onChange: PropTypes.func,
|
|
309
308
|
values: PropTypes.object.isRequired,
|
|
310
309
|
id: PropTypes.string.isRequired,
|
|
311
|
-
planId: PropTypes.string,
|
|
310
|
+
planId: PropTypes.string.isRequired,
|
|
312
311
|
hlPricings: PropTypes.object.isRequired,
|
|
313
312
|
};
|