Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
use elementType
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Aug 12, 2021
1 parent 4f24859 commit f07b811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions packages/react-instantsearch-dom/src/components/Hits.tsx
Expand Up @@ -57,11 +57,7 @@ const HitPropTypes = PropTypes.shape({
Hits.propTypes = {
hits: PropTypes.arrayOf(HitPropTypes.isRequired).isRequired,
className: PropTypes.string,
hitComponent: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
PropTypes.object,
]),
hitComponent: PropTypes.elementType,
};

export default Hits;
Expand Up @@ -62,11 +62,7 @@ InfiniteHits.propTypes = {
refineNext: PropTypes.func.isRequired,
translate: PropTypes.func.isRequired,
className: PropTypes.string,
hitComponent: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
PropTypes.object,
]),
hitComponent: PropTypes.elementType,
};

InfiniteHits.defaultProps = {
Expand Down

0 comments on commit f07b811

Please sign in to comment.