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

Commit

Permalink
Update prop name (#810)
Browse files Browse the repository at this point in the history
* Update prop name

Correct `separatorComponent` prop name to `separator` as per #803

* Update PropTypes on Snippet component
  • Loading branch information
Greenie10 authored and samouss committed Jan 8, 2018
1 parent 938849f commit 340b16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-instantsearch/src/components/Snippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ Snippet.propTypes = {
highlight: PropTypes.func.isRequired,
tagName: PropTypes.string,
nonHighlightedTagName: PropTypes.string,
separatorComponent: PropTypes.node,
separator: PropTypes.node,
};
2 changes: 1 addition & 1 deletion packages/react-instantsearch/src/widgets/Snippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SnippetComponent from '../components/Snippet.js';
* @propType {object} hit - hit object containing the highlighted snippet attribute
* @propType {string} [tagName='em'] - tag to be used for highlighted parts of the attribute
* @propType {string} [nonHighlightedTagName='span'] - tag to be used for the parts of the hit that are not highlighted
* @propType {React.Element} [separatorComponent=',<space>'] - symbol used to separate the elements of the array in case the attributeName points to an array of strings.
* @propType {React.Element} [separator=',<space>'] - symbol used to separate the elements of the array in case the attributeName points to an array of strings.
* @example
* import React from 'react';
* import { Snippet, InstantSearch, Hits } from 'react-instantsearch/dom';
Expand Down

0 comments on commit 340b16d

Please sign in to comment.