Skip to content

Commit

Permalink
Fix some prop type errors (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
leSamo authored Jun 20, 2023
1 parent a3729cb commit 3e8b963
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SelectCustomSorter = ({ sorterData, setSorterData, selectProps, options })
};

SelectCustomSorter.propTypes = {
sorterData: propTypes.object,
sorterData: propTypes.string,
setSorterData: propTypes.func,
selectProps: propTypes.object,
options: propTypes.array
Expand Down
2 changes: 1 addition & 1 deletion src/Components/SmartComponents/Modals/ReportConfigModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const ReportConfigModal = ({
ReportConfigModal.propTypes = {
isOpen: propTypes.bool,
filterData: propTypes.object,
sorterData: propTypes.object,
sorterData: propTypes.string,
setFilterData: propTypes.func,
setSorterData: propTypes.func,
handleModalClose: propTypes.func,
Expand Down
6 changes: 5 additions & 1 deletion src/Components/SmartComponents/Remediation/Remediation.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ const Remediation = ({ cves, systems, manyRules, isDisabled }) => {
Remediation.propTypes = {
cves: propTypes.oneOfType([
propTypes.array,
propTypes.string
propTypes.string,
propTypes.shape({
id: propTypes.string,
rules: propTypes.array
})
]),
systems: propTypes.oneOfType([
propTypes.array,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ SystemsExposedTableToolbar.propTypes = {
parameters: propTypes.object,
cveName: propTypes.string,
cveStatusDetails: propTypes.object,
filterRuleValues: propTypes.object,
filterRuleValues: propTypes.array,
expandAll: propTypes.func,
hasSecurityRule: propTypes.bool,
isAllExpanded: propTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const InsightsRoute = ({ component: Component, title, ...rest }) => {
};

InsightsRoute.propTypes = {
component: PropTypes.func,
component: PropTypes.elementType,
title: PropTypes.string
};

Expand Down

0 comments on commit 3e8b963

Please sign in to comment.