diff --git a/components/ContentPicker/index.js b/components/ContentPicker/index.js index 673fd21e..b801441c 100644 --- a/components/ContentPicker/index.js +++ b/components/ContentPicker/index.js @@ -7,7 +7,7 @@ import { __ } from '@wordpress/i18n'; import { ContentSearch } from '../ContentSearch'; import SortableList from './SortableList'; -const NAMESPACE = '10up-block-components'; +const NAMESPACE = '10up-content-picker'; /** * Content Picker diff --git a/components/ContentSearch/SearchItem.js b/components/ContentSearch/SearchItem.js index 470d4b5e..de268cee 100644 --- a/components/ContentSearch/SearchItem.js +++ b/components/ContentSearch/SearchItem.js @@ -14,7 +14,9 @@ import { Button, TextHighlight } from '@wordpress/components'; * @param props.id * @return {*} React JSX */ -const SearchItem = ({ suggestion, onClick, searchTerm, isSelected, id }) => { +const SearchItem = ({ suggestion, onClick, searchTerm, isSelected, id, contentTypes }) => { + const showType = suggestion.type && contentTypes.length > 1; + return (