1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix search title

This commit is contained in:
Matthias Kretschmann 2020-10-24 17:05:43 +02:00
parent 7113db6419
commit 806d9cd4ca
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -6,10 +6,10 @@ import queryString from 'query-string'
export default function PageGatsbySearch(props: PageProps): ReactElement { export default function PageGatsbySearch(props: PageProps): ReactElement {
const parsed = queryString.parse(props.location.search) const parsed = queryString.parse(props.location.search)
const { text, tag } = parsed const { text, tags } = parsed
return ( return (
<Layout title={`Search for ${text || tag}`} uri={props.uri}> <Layout title={`Search for '${text || tags}'`} uri={props.uri}>
<PageSearch location={props.location} /> <PageSearch location={props.location} />
</Layout> </Layout>
) )