@capillarytech/creatives-library 2.0.37 → 2.0.38

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.
@@ -10,8 +10,8 @@ import PropTypes from 'prop-types';
10
10
  import React from 'react';
11
11
  import { Label } from 'semantic-ui-react';
12
12
  import _ from 'lodash';
13
- import { Tabs, Row, Col, Table, Modal, notification} from 'antd';
14
- import { CapButton, CapInput, CapPopover, CapCheckbox, CapRadio, CapSelect, CapTable, CapColumn} from '@capillarytech/cap-ui-library';
13
+ import { Tabs, Row, Col, Table, Modal} from 'antd';
14
+ import { CapButton, CapInput, CapPopover, CapCheckbox, CapRadio, CapSelect, CapTable, CapColumn, CapNotification} from '@capillarytech/cap-ui-library';
15
15
  import TemplatePreview from '../../components/TemplatePreview';
16
16
  import TagList from '../../containers/TagList';
17
17
  import SmsEditor from '../SmsEditor';
@@ -299,11 +299,9 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
299
299
  };
300
300
 
301
301
  openNotificationWithIcon = (type, message) => {
302
- const dur = (type === 'error' || type === 'warning') ? null : 5;
303
- notification[type]({
302
+ CapNotification.error({
304
303
  message: (`${type.toUpperCase()} ! ! ! `),
305
304
  description: message, //'This is the content of the notification. This is the content of the notification. This is the content of the notification.',
306
- duration: dur,
307
305
  });
308
306
  }
309
307
 
@@ -197,7 +197,7 @@ class Creatives extends React.Component {
197
197
  cap={cap}
198
198
  />
199
199
  }
200
- footer={!isFullMode && !isLoading &&
200
+ footer={!isFullMode &&
201
201
  <SlideBoxFooter
202
202
  messages={this.props.messages}
203
203
  onSave={this.saveMessage}
@@ -712,7 +712,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
712
712
  }
713
713
 
714
714
  setFormValidity = (isFormValid) => {
715
- this.setState({isFormValid});
715
+ this.setState({isFormValid, startValidation: false});
716
716
  }
717
717
 
718
718
  setEditData(editData) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "2.0.37",
4
+ "version": "2.0.38",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",