Skip to content

Commit ce05312

Browse files
committed
fix: resolve SonarQube issues - remove unused import and add PropTypes
1 parent cdc074f commit ce05312

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/Header/Header.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import '../../App.module.css';
3636
import {
3737
ACTUAL_COST_BREAKDOWN,
3838
BADGE_MANAGEMENT,
39-
BLUE_SQUARE_EMAIL_MANAGEMENT,
4039
DASHBOARD,
4140
JOB_ANALYTICS_REPORT,
4241
LOGOUT,

src/components/ResolvedTasks/ResolvedTasks.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import axios from 'axios';
55
import moment from 'moment';
66
import { Link } from 'react-router-dom';
77
import { ENDPOINTS } from '~/utils/URL';
8+
import PropTypes from 'prop-types';
89

910
const ResolvedTasks = props => {
1011
const [tasks, setTasks] = useState([]);
@@ -114,4 +115,10 @@ const mapStateToProps = state => ({
114115
auth: state.auth,
115116
});
116117

118+
ResolvedTasks.propTypes = {
119+
auth: PropTypes.shape({
120+
darkMode: PropTypes.bool,
121+
}),
122+
};
123+
117124
export default connect(mapStateToProps)(ResolvedTasks);

0 commit comments

Comments
 (0)