mirror of
https://github.com/fergalmoran/turnstone.git
synced 2025-12-22 09:49:56 +00:00
Rename ItemContents prop to Item
This commit is contained in:
@@ -86,7 +86,7 @@ const App = () => {
|
||||
Cancel={CancelButton}
|
||||
Clear={ClearButton}
|
||||
GroupName={GroupName}
|
||||
ItemContents={ItemContents}
|
||||
Item={ItemContents}
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function Item(props) {
|
||||
} = useContext(StateContext)
|
||||
|
||||
const { customStyles, highlighted, query } = state
|
||||
const ItemContents = state.props.ItemContents
|
||||
const ItemContents = state.props.Item
|
||||
const globalMatch = item.searchType === 'contains'
|
||||
const isHighlighted = highlighted && index === highlighted.index
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ Turnstone.propTypes = {
|
||||
text: PropTypes.string,
|
||||
Cancel: PropTypes.elementType,
|
||||
Clear: PropTypes.elementType,
|
||||
ItemContents: PropTypes.elementType,
|
||||
Item: PropTypes.elementType,
|
||||
GroupName: PropTypes.elementType
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user