@capillarytech/creatives-library 7.17.66-alpha.4 → 7.17.66-alpha.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.
|
@@ -83,7 +83,17 @@ export const BADGES_RELATED_TAGS = [
|
|
|
83
83
|
"badge_expiry_Dd_dot_mm_dot_yy",
|
|
84
84
|
"badge_expiry_dd_space_Mon",
|
|
85
85
|
"Days_until_expiry",
|
|
86
|
+
"badges_enroll_expiry_date.FORMAT_1",
|
|
87
|
+
"badges_enroll_expiry_date.FORMAT_2",
|
|
88
|
+
"badges_enroll_expiry_date.FORMAT_3",
|
|
89
|
+
"badges_enroll_expiry_date.FORMAT_4",
|
|
90
|
+
"badges_enroll_expiry_date.FORMAT_5",
|
|
91
|
+
"badges_enroll_expiry_date.FORMAT_6",
|
|
92
|
+
"badges_enroll_expiry_date.FORMAT_7",
|
|
93
|
+
"badges_enroll_expiry_date.FORMAT_8",
|
|
94
|
+
"badges_enroll_expiring_in_days",
|
|
86
95
|
];
|
|
96
|
+
export const BADGES_ENROLL = 'BADGES_ENROLL';
|
|
87
97
|
|
|
88
98
|
export const CUSTOMER_BARCODE_TAG = "customer_barcode";
|
|
89
99
|
export const COPY_OF = "Copy of";
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ import { selectCurrentOrgDetails } from '../Cap/selectors';
|
|
|
23
23
|
import { injectIntl } from 'react-intl';
|
|
24
24
|
import { scope } from './messages';
|
|
25
25
|
import { handleInjectedData, hasGiftVoucherFeature, hasPromoFeature, hasBadgesFeature, transformBadgeTags } from '../../utils/common';
|
|
26
|
-
import { GIFT_VOUCHER_RELATED_TAGS, PROMO_ENGINE_RELATED_TAGS, BADGES_RELATED_TAGS } from '../../containers/App/constants';
|
|
26
|
+
import { GIFT_VOUCHER_RELATED_TAGS, PROMO_ENGINE_RELATED_TAGS, BADGES_RELATED_TAGS, BADGES_ENROLL } from '../../containers/App/constants';
|
|
27
27
|
|
|
28
28
|
const TreeNode = Tree.TreeNode;
|
|
29
29
|
|
|
@@ -89,8 +89,8 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
|
|
|
89
89
|
if (props.tags && props.tags.length > 0) {
|
|
90
90
|
tags = this.populateTags(props.tags);
|
|
91
91
|
}
|
|
92
|
-
if (props
|
|
93
|
-
if ((props?.selectedOfferDetails[0]?.type ===
|
|
92
|
+
if (props?.selectedOfferDetails && !_.isEmpty(props?.selectedOfferDetails) ) {
|
|
93
|
+
if ((props?.selectedOfferDetails[0]?.type === BADGES_ENROLL) && (tags && tags?.Badge) ) {
|
|
94
94
|
transformBadgeTags(props.selectedOfferDetails, tags);
|
|
95
95
|
} else if (tags && tags?.coupon) {
|
|
96
96
|
this.transformCouponTags(props.selectedOfferDetails, tags);
|