Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #86 from PanSpagetka/tagging-pf4fix-props-validation
Browse files Browse the repository at this point in the history
Fix PropTypes validation from PF4 tagging
  • Loading branch information
karelhala authored Oct 1, 2018
2 parents 749df25 + f642b7b commit 75c6bf1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/tagging-pf4/components/BadgeWithDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { Badge } from '@patternfly/react-core';
import { TimesIcon } from '@patternfly/react-icons';
import TaggingPropTypes from '../TaggingPropTypes';

const BadgeWithDelete = ({
onDeleteClick, description, truncate, className,
Expand All @@ -24,8 +23,8 @@ const BadgeWithDelete = ({
);

BadgeWithDelete.propTypes = {
onDeleteClick: PropTypes.func.isRequired,
description: TaggingPropTypes.string,
onDeleteClick: PropTypes.func,
description: PropTypes.string,
truncate: PropTypes.func,
className: PropTypes.string,
};
Expand Down
2 changes: 1 addition & 1 deletion src/tagging-pf4/components/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Tag = ({
);

Tag.propTypes = {
onTagDeleteClick: PropTypes.func.isRequired,
onTagDeleteClick: PropTypes.func,
tagValue: TaggingPropTypes.value,
truncate: PropTypes.func.isRequired,
};
Expand Down
2 changes: 1 addition & 1 deletion src/tagging-pf4/components/TagCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TagCategory extends React.Component {

TagCategory.propTypes = {
onTagDeleteClick: PropTypes.func,
tagCategory: TaggingPropTypes.category.isRequired,
tagCategory: TaggingPropTypes.category,
values: PropTypes.arrayOf(TaggingPropTypes.category).isRequired,
categoryTruncate: PropTypes.func,
valueTruncate: PropTypes.func,
Expand Down

0 comments on commit 75c6bf1

Please sign in to comment.