@pelcro/react-pelcro-js 3.26.0-beta.71 → 3.26.0-beta.72
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/dist/index.cjs.js +6 -0
- package/dist/index.esm.js +6 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -33234,6 +33234,9 @@ function DashboardWithHook(props) {
|
|
|
33234
33234
|
}),
|
|
33235
33235
|
setPaymentMethodToEdit: setPaymentMethodToEdit,
|
|
33236
33236
|
setPaymentMethodToDelete: setPaymentMethodToDelete
|
|
33237
|
+
// used for custom event when clicking on the new subscription button
|
|
33238
|
+
,
|
|
33239
|
+
onNewSubscriptionClick: props.onNewSubscriptionClick
|
|
33237
33240
|
});
|
|
33238
33241
|
}
|
|
33239
33242
|
DashboardWithHook.viewId = "dashboard";
|
|
@@ -33384,6 +33387,9 @@ class Dashboard extends React.Component {
|
|
|
33384
33387
|
let {
|
|
33385
33388
|
isGift
|
|
33386
33389
|
} = _ref;
|
|
33390
|
+
if (this.props.onNewSubscriptionClick && !isGift) {
|
|
33391
|
+
return this.props.onNewSubscriptionClick();
|
|
33392
|
+
}
|
|
33387
33393
|
if (isGift) {
|
|
33388
33394
|
this.props.setProductAndPlan(null, null, true);
|
|
33389
33395
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -33204,6 +33204,9 @@ function DashboardWithHook(props) {
|
|
|
33204
33204
|
}),
|
|
33205
33205
|
setPaymentMethodToEdit: setPaymentMethodToEdit,
|
|
33206
33206
|
setPaymentMethodToDelete: setPaymentMethodToDelete
|
|
33207
|
+
// used for custom event when clicking on the new subscription button
|
|
33208
|
+
,
|
|
33209
|
+
onNewSubscriptionClick: props.onNewSubscriptionClick
|
|
33207
33210
|
});
|
|
33208
33211
|
}
|
|
33209
33212
|
DashboardWithHook.viewId = "dashboard";
|
|
@@ -33354,6 +33357,9 @@ class Dashboard extends Component {
|
|
|
33354
33357
|
let {
|
|
33355
33358
|
isGift
|
|
33356
33359
|
} = _ref;
|
|
33360
|
+
if (this.props.onNewSubscriptionClick && !isGift) {
|
|
33361
|
+
return this.props.onNewSubscriptionClick();
|
|
33362
|
+
}
|
|
33357
33363
|
if (isGift) {
|
|
33358
33364
|
this.props.setProductAndPlan(null, null, true);
|
|
33359
33365
|
}
|