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}
|
Cancel={CancelButton}
|
||||||
Clear={ClearButton}
|
Clear={ClearButton}
|
||||||
GroupName={GroupName}
|
GroupName={GroupName}
|
||||||
ItemContents={ItemContents}
|
Item={ItemContents}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export default function Item(props) {
|
|||||||
} = useContext(StateContext)
|
} = useContext(StateContext)
|
||||||
|
|
||||||
const { customStyles, highlighted, query } = state
|
const { customStyles, highlighted, query } = state
|
||||||
const ItemContents = state.props.ItemContents
|
const ItemContents = state.props.Item
|
||||||
const globalMatch = item.searchType === 'contains'
|
const globalMatch = item.searchType === 'contains'
|
||||||
const isHighlighted = highlighted && index === highlighted.index
|
const isHighlighted = highlighted && index === highlighted.index
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ Turnstone.propTypes = {
|
|||||||
text: PropTypes.string,
|
text: PropTypes.string,
|
||||||
Cancel: PropTypes.elementType,
|
Cancel: PropTypes.elementType,
|
||||||
Clear: PropTypes.elementType,
|
Clear: PropTypes.elementType,
|
||||||
ItemContents: PropTypes.elementType,
|
Item: PropTypes.elementType,
|
||||||
GroupName: PropTypes.elementType
|
GroupName: PropTypes.elementType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user