Skip to content

Conversation

@eriveltonelias
Copy link
Contributor

No description provided.

@eriveltonelias eriveltonelias mentioned this pull request Jan 9, 2018
export default class SortableList extends Component {
static propTypes = {
data: PropTypes.object.isRequired,
data: PropTypes.oneOfType([PropTypes.array.isRequired, PropTypes.object.isRequired]),
Copy link
Owner

@gitim gitim Jan 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change to PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of course, I can do it. Thanks!

@gitim gitim merged commit fe84e0b into gitim:master Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants