@pelcro/react-pelcro-js 3.11.0-beta.2 → 3.11.0-beta.4
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 +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -25751,14 +25751,14 @@ const SubscriptionsItems = ({
|
|
|
25751
25751
|
onClick: onRenewClick,
|
|
25752
25752
|
disabled: disableSubmit,
|
|
25753
25753
|
"data-key": sub.id
|
|
25754
|
-
}, t("labels.renew")), sub.shipments_suspended_until && isDateBeforeToday(shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
25754
|
+
}, t("labels.renew")), sub.shipments_suspended_until && !isDateBeforeToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
25755
25755
|
variant: "ghost",
|
|
25756
25756
|
className: "plc-text-blue-400 pelcro-dashboard-sub-suspend-button",
|
|
25757
25757
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgXIconSolid, null),
|
|
25758
25758
|
onClick: onUnSuspendClick,
|
|
25759
25759
|
disabled: disableSubmit,
|
|
25760
25760
|
"data-key": sub.id
|
|
25761
|
-
}, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || shipments_suspended_until &&
|
|
25761
|
+
}, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && isDateBeforeToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default['default'].createElement(Button, {
|
|
25762
25762
|
variant: "ghost",
|
|
25763
25763
|
className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-suspend-button",
|
|
25764
25764
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgCalendar, null),
|
package/dist/index.esm.js
CHANGED
|
@@ -25721,14 +25721,14 @@ const SubscriptionsItems = ({
|
|
|
25721
25721
|
onClick: onRenewClick,
|
|
25722
25722
|
disabled: disableSubmit,
|
|
25723
25723
|
"data-key": sub.id
|
|
25724
|
-
}, t("labels.renew")), sub.shipments_suspended_until && isDateBeforeToday(shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default.createElement(Button, {
|
|
25724
|
+
}, t("labels.renew")), sub.shipments_suspended_until && !isDateBeforeToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default.createElement(Button, {
|
|
25725
25725
|
variant: "ghost",
|
|
25726
25726
|
className: "plc-text-blue-400 pelcro-dashboard-sub-suspend-button",
|
|
25727
25727
|
icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
|
|
25728
25728
|
onClick: onUnSuspendClick,
|
|
25729
25729
|
disabled: disableSubmit,
|
|
25730
25730
|
"data-key": sub.id
|
|
25731
|
-
}, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || shipments_suspended_until &&
|
|
25731
|
+
}, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && isDateBeforeToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default.createElement(Button, {
|
|
25732
25732
|
variant: "ghost",
|
|
25733
25733
|
className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-suspend-button",
|
|
25734
25734
|
icon: /*#__PURE__*/React__default.createElement(SvgCalendar, null),
|