dtable-ui-component 0.3.13-alpha1 → 0.3.14

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.
@@ -1,4 +1,3 @@
1
- /* copy from dtable, should optimize codes soon, delete useless codes */
2
1
  .notification-wrapper .popover {
3
2
  max-width: 300px;
4
3
  }
@@ -48,7 +48,7 @@ var NotificationPopover = /*#__PURE__*/function (_React$Component) {
48
48
 
49
49
  _this.onHandleScroll = function () {
50
50
  if (_this.notificationListRef.offsetHeight + _this.notificationListRef.scrollTop + 1 >= _this.notificationsWrapperRef.offsetHeight) {
51
- _this.props.listNotifications();
51
+ _this.props.listNotifications && _this.props.listNotifications();
52
52
  }
53
53
  };
54
54
 
@@ -123,4 +123,9 @@ var NotificationPopover = /*#__PURE__*/function (_React$Component) {
123
123
  return NotificationPopover;
124
124
  }(React.Component);
125
125
 
126
+ NotificationPopover.defaultProps = {
127
+ headerText: '',
128
+ bodyText: '',
129
+ footerText: ''
130
+ };
126
131
  export { NotificationPopover as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.3.13-alpha1",
3
+ "version": "0.3.14",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "dtable-utils": "0.0.2",