Skip to content

Commit

Permalink
KAAV-2046 add fixes for SonarCloud Quality Gate problems,more PropTyp…
Browse files Browse the repository at this point in the history
…es fixes
  • Loading branch information
MinnaSiili committed Sep 30, 2024
1 parent 9468845 commit dadb6a2
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 18 deletions.
38 changes: 27 additions & 11 deletions src/components/input/CustomField.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,14 +811,14 @@ class CustomField extends Component {

CustomField.propTypes = {
disabled: PropTypes.bool,
field:PropTypes.object,
input:PropTypes.func,
onRadioChange:PropTypes.func,
defaultValue:PropTypes.bool,
formName:PropTypes.string,
attributeData:PropTypes.object,
deadlines:PropTypes.array,
isProjectTimetableEdit:PropTypes.bool,
field: PropTypes.object,
input: PropTypes.func,
onRadioChange: PropTypes.func,
defaultValue: PropTypes.bool,
formName: PropTypes.string,
attributeData: PropTypes.object,
deadlines: PropTypes.array,
isProjectTimetableEdit: PropTypes.bool,
nonEditable: PropTypes.bool,
rollingInfo: PropTypes.bool,
modifyText: PropTypes.string,
Expand All @@ -838,11 +838,27 @@ CustomField.propTypes = {
PropTypes.bool,
PropTypes.object
]),
isCurrentPhase:PropTypes.bool,
isCurrentPhase: PropTypes.bool,
selectedPhase: PropTypes.number,
phaseIsClosed: PropTypes.bool,
checkLocked: PropTypes.func,
isTabActive: PropTypes.bool
}
isTabActive: PropTypes.bool,
disabledDates: PropTypes.array,
lomapaivat: PropTypes.array,
dateTypes: PropTypes.object,
deadlineSection: PropTypes.object,
maxMoveGroup: PropTypes.object,
maxDateToMove: PropTypes.string,
groupName: PropTypes.string,
visItems: PropTypes.array,
visGroups: PropTypes.array,
deadlineSections: PropTypes.array,
formValues: PropTypes.object,
confirmedValue: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.bool,
])
};

export default CustomField
6 changes: 4 additions & 2 deletions src/components/input/DeadlineInfoText.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ DeadlineInfoText.propTypes = {
PropTypes.string,
PropTypes.number,
PropTypes.bool,
])
})
]),
name: PropTypes.string,
}),
label: PropTypes.string,
}

export default DeadlineInfoText
5 changes: 4 additions & 1 deletion src/components/input/DeadlineInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ DeadLineInput.propTypes = {
timeTableDisabled: PropTypes.bool,
dateTypes: PropTypes.object,
deadlineSection: PropTypes.object,
maxMoveGroup: PropTypes.object,
maxMoveGroup: PropTypes.oneOfType([
PropTypes.object,
PropTypes.string
]),
maxDateToMove: PropTypes.string,
groupName: PropTypes.string,
visGroups: PropTypes.array,
Expand Down
5 changes: 4 additions & 1 deletion src/components/input/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ FormField.propTypes = {
lomapaivat: PropTypes.array,
dateTypes: PropTypes.object,
deadlineSection: PropTypes.object,
maxMoveGroup: PropTypes.object,
maxMoveGroup: PropTypes.oneOfType([
PropTypes.object,
PropTypes.string
]),
maxDateToMove: PropTypes.string,
groupName: PropTypes.string,
visGroups: PropTypes.array,
Expand Down
3 changes: 0 additions & 3 deletions src/components/projectEdit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,6 @@ ProjectEditPage.propTypes = {
showTimetableForm: PropTypes.bool,
attribute_data: PropTypes.object,
saveProjectFloorArea: PropTypes.func,
isResponsible: PropTypes.bool,
projectPhaseIndex: PropTypes.number,
isAdmin: PropTypes.bool,
}

const mapStateToProps = state => {
Expand Down

0 comments on commit dadb6a2

Please sign in to comment.