Simplify Search
luisherranz opened this issue · 1 comments
luisherranz commented
Data objects now have a data.isSearch
attribute like this:
<SearchResults when={data.isSearch} />
And also data.searchQuery
, so there's no need for extracting that from the query anymore, like here: https://github.com/chakra-ui/frontity-chakra-ui-theme/blob/master/packages/frontity-chakra-theme/src/components/search/search-results.js#L85-L86
luisherranz commented
Partially done in #27
Usage of data.searchQuery
still remains to be added.