All files / src/version2/GlobalNotification/props propTypes.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44    1x                                     1x                             1x              
import PropTypes from 'prop-types';
 
export const propTypes = {
  dataSelectorId: PropTypes.string,
  hideMessage: PropTypes.func,
  message: PropTypes.string,
  onClick: PropTypes.func,
  showMessage: PropTypes.bool,
  type: PropTypes.oneOf(['success', 'danger', 'info', 'warning', 'error', 'primary']),
  i18nKeys: PropTypes.object,
  customProps: PropTypes.shape({
    ExtraProps: PropTypes.object
  }),
  id: PropTypes.number,
  hideTime: PropTypes.number,
  needAutoClose: PropTypes.bool,
  isCollapseView: PropTypes.bool,
  shadowCount: PropTypes.number,
  needShadow: PropTypes.bool
};
 
export const UI_propTypes = {
  dataSelectorId: PropTypes.string,
  closeTitle: PropTypes.string,
  message: PropTypes.string,
  onClick: PropTypes.func,
  type: PropTypes.oneOf(['success', 'danger', 'info', 'warning', 'error', 'primary']),
  customProps: PropTypes.shape({
      ExtraProps: PropTypes.object
    }),
  needShadow: PropTypes.bool,
  shadowCount: PropTypes.number,
  id: PropTypes.number,
  onClose: PropTypes.func
}
 
export const new_propTypes = {
  Element: PropTypes.element,
  isClose: PropTypes.bool,
  onPortalClose: PropTypes.func,
  autoClose: PropTypes.bool,
  hideTime: PropTypes.string
}