@capillarytech/creatives-library 7.17.39-alpha.0 → 7.17.39-alpha.2

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.39-alpha.0",
4
+ "version": "7.17.39-alpha.2",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -213,7 +213,7 @@ export function SlideBoxContent(props) {
213
213
  isEmailPreview = slidBoxContent === 'preview' && channel === constants.EMAIL;
214
214
  isMpushPreview = slidBoxContent === 'preview' && channel === constants.MOBILE_PUSH;
215
215
  isEditFTP = isEdit && [constants.NO_COMMUNICATION, constants.FTP].includes(channel);
216
- isEditZalo = isEdit && channel === constants.ZALO;
216
+ isEditZalo = isEdit && channel?.toUpperCase() === constants.ZALO;
217
217
  }
218
218
  const isDltEnabled = commonUtil.isTraiDLTEnable(isFullMode, smsRegister);
219
219
  const hasJPLocaleHideFeatureEnabled = commonUtil?.hasJPLocaleHideFeatureEnabled();
@@ -65,7 +65,7 @@ export function SlideBoxHeader(props) {
65
65
  ftp: 'FTP',
66
66
  whatsapp: <FormattedMessage {...messages.whatsappTemplate} />,
67
67
  rcs: <FormattedMessage {...messages.rcsCreative} />,
68
- zalo: <FormattedMessage {...messages.zaloTemplate} />
68
+ zalo: <FormattedMessage {...messages.zaloTemplate} />,
69
69
  };
70
70
  return labels[currentChannel.toLowerCase()];
71
71
  };
@@ -135,14 +135,14 @@ export const Zalo = (props) => {
135
135
  } = {},
136
136
  } = {},
137
137
  } = {},
138
- } = isFullMode ? zaloTemplateInfoValue : templateData;
138
+ } = zaloTemplateInfoValue;
139
139
  setTemplateName(name);
140
140
  setTemplateId(_id);
141
141
  setTemplateListParams(listParams);
142
142
  setTemplatePreviewUrl(previewUrl);
143
143
  setZaloTemplateStatus(status);
144
144
  updateTextAreaId(listParams[0]?.name);
145
- }, [zaloTemplateInfoValue, templateData]);
145
+ }, [zaloTemplateInfoValue]);
146
146
 
147
147
  useEffect(() => {
148
148
  let tag = get(metaEntities, `tags.standard`, []);