All files / src/AttachmentViewer/props propTypes.js

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

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      2x                               2x                                              
import PropTypes from 'prop-types';
import { propTypes as AvatarProps } from '@zohodesk/components/es/Avatar/props/propTypes'
 
export const AttachmentImage_propTypes = {
  alt: PropTypes.string,
  customClass: PropTypes.shape({
    customImageClass: PropTypes.string,
    customChildrenClass: PropTypes.string
  }),
  dataId: PropTypes.string,
  id: PropTypes.string,
  isCover: PropTypes.bool,
  onClick: PropTypes.func,
  onLoad: PropTypes.func,
  onError: PropTypes.func,
  src: PropTypes.string,
  children: PropTypes.node,
};
 
export const AttachmentViewer_propTypes = {
  hideAttachmentViewer: PropTypes.func,
  i18nKeys: PropTypes.shape({
    nextText: PropTypes.string,
    previousText: PropTypes.string,
    zoomOutText: PropTypes.string,
    zoomInText: PropTypes.string,
    newTabText: PropTypes.string,
    downloadText: PropTypes.string,
    closeText: PropTypes.string,
    hideText: PropTypes.string,
    showText: PropTypes.string
  }),
  needDownload: PropTypes.string,
  previewObj: PropTypes.object,
  responsiveId: PropTypes.string,
  maintainZoom: PropTypes.bool,
  isActive:PropTypes.bool,
  dataId: PropTypes.string,
  customProps: PropTypes.shape({
    avatarProps: PropTypes.exact(AvatarProps)
  })
};