mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Issue-#545: Resolve build issue
This commit is contained in:
parent
70a92bb4a3
commit
9ceeea7c4e
@ -5,8 +5,9 @@ import { useStaticQuery, graphql } from 'gatsby'
|
|||||||
import SearchClient from './SearchClient'
|
import SearchClient from './SearchClient'
|
||||||
import Layout from '../../components/Layout'
|
import Layout from '../../components/Layout'
|
||||||
import HeaderSection from '../../components/HeaderSection'
|
import HeaderSection from '../../components/HeaderSection'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
const SearchComponent = () => {
|
const SearchComponent = ({ location }) => {
|
||||||
const data = useStaticQuery(graphql`
|
const data = useStaticQuery(graphql`
|
||||||
query {
|
query {
|
||||||
allMarkdownRemark(filter: { fileAbsolutePath: { regex: "/content/" } }) {
|
allMarkdownRemark(filter: { fileAbsolutePath: { regex: "/content/" } }) {
|
||||||
@ -58,4 +59,8 @@ const SearchComponent = () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SearchComponent.propTypes = {
|
||||||
|
location: PropTypes.object.isRequired
|
||||||
|
}
|
||||||
|
|
||||||
export default SearchComponent
|
export default SearchComponent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user