Skip to content

Commit 3e33047

Browse files
refactor: added proptypes for sonar issue
1 parent 4525812 commit 3e33047

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/components/UserProfile/UserProfileModal/UserProfileModal.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { OverlayTrigger, Popover } from 'react-bootstrap';
2222
import WarningModal from '../../Warnings/modals/WarningModal';
2323
import BlueSquareEmailCCPopup from '../BlueSquareEmailCCPopup';
2424
import CcUserList from './CCUserList';
25+
import PropTypes from 'prop-types';
2526

2627
const UserProfileModal = props => {
2728
const {
@@ -747,4 +748,14 @@ const handleCcListUpdate = () => {
747748
);
748749
};
749750

751+
UserProfileModal.propTypes = {
752+
specialWarnings: PropTypes.arrayOf(
753+
propTypes.shape({
754+
title: PropTypes.string,
755+
warnings: PropTypes.arrayOf(PropTypes.string),
756+
abbreviation: PropTypes.string
757+
})
758+
),
759+
};
760+
750761
export default connect(null, { hasPermission })(UserProfileModal);

0 commit comments

Comments
 (0)