Skip to content

Commit

Permalink
refactor(warnings): Take care of yellow warnings in console
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente committed Nov 26, 2024
1 parent e993a7a commit 1ac404d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AppEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ const AppEntry = ({ logger }) => {
};

AppEntry.propTypes = {
logger: PropTypes.function,
logger: PropTypes.func,
};
export default AppEntry;
5 changes: 4 additions & 1 deletion src/PresentationalComponents/Labels/CategoryLabel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/jsx-key */
import AutomationIcon from '@patternfly/react-icons/dist/esm/icons/automation-icon';
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
import LockIcon from '@patternfly/react-icons/dist/esm/icons/lock-icon';
Expand All @@ -23,18 +22,22 @@ const CategoryLabel = ({ labelList }) => {
const labels = (id) =>
[
<LabelIcon
key={'availability'}
icon={<AutomationIcon />}
text={intl.formatMessage(messages.availability)}
/>,
<LabelIcon
key={'security'}
icon={<LockIcon />}
text={intl.formatMessage(messages.security)}
/>,
<LabelIcon
key={'stability'}
icon={<CubeIcon />}
text={intl.formatMessage(messages.stability)}
/>,
<LabelIcon
key={'performance'}
icon={<PortIcon />}
text={intl.formatMessage(messages.performance)}
/>,
Expand Down
2 changes: 1 addition & 1 deletion src/PresentationalComponents/Labels/LabelIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const LabelIcon = ({ icon, text }) => (

LabelIcon.propTypes = {
icon: PropTypes.object,
text: PropTypes.bool,
text: PropTypes.string,
};

export default LabelIcon;

0 comments on commit 1ac404d

Please sign in to comment.