mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
merge fix
This commit is contained in:
parent
a94d7e1b6c
commit
9540236ef0
@ -44,14 +44,13 @@ export default class Search extends PureComponent<SearchProps, SearchState> {
|
|||||||
|
|
||||||
if (text) {
|
if (text) {
|
||||||
await this.setState({
|
await this.setState({
|
||||||
searchTerm: `${text}`
|
searchTerm: encodeURIComponent(`${text}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (categories) {
|
if (categories) {
|
||||||
await this.setState({
|
await this.setState({
|
||||||
searchTerm: encodeURIComponent(`${searchTerm}`),
|
searchCategories: encodeURIComponent(`${categories}`)
|
||||||
searchCategories: `${categories}`
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,13 +132,13 @@ export default class Search extends PureComponent<SearchProps, SearchState> {
|
|||||||
return (
|
return (
|
||||||
<Route title="Search" wide>
|
<Route title="Search" wide>
|
||||||
<Content wide>
|
<Content wide>
|
||||||
{totalResults > 0 && (
|
{totalResults > 0 && (
|
||||||
<h2
|
<h2
|
||||||
className={styles.resultsTitle}
|
className={styles.resultsTitle}
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `${totalResults} results for <span>${decodeURIComponent(
|
__html: `${totalResults} results for <span>${decodeURIComponent(
|
||||||
this.state.searchTerm
|
this.state.searchTerm
|
||||||
)}</span>`
|
)}</span>`
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user