1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-06-30 21:52:06 +02:00

Issue-#545: Resolve build issue

This commit is contained in:
Akshay 2021-09-13 23:34:59 +02:00
parent 70a92bb4a3
commit 9ceeea7c4e

View File

@ -5,8 +5,9 @@ import { useStaticQuery, graphql } from 'gatsby'
import SearchClient from './SearchClient'
import Layout from '../../components/Layout'
import HeaderSection from '../../components/HeaderSection'
import PropTypes from 'prop-types'
const SearchComponent = () => {
const SearchComponent = ({ location }) => {
const data = useStaticQuery(graphql`
query {
allMarkdownRemark(filter: { fileAbsolutePath: { regex: "/content/" } }) {
@ -58,4 +59,8 @@ const SearchComponent = () => {
)
}
SearchComponent.propTypes = {
location: PropTypes.object.isRequired
}
export default SearchComponent