Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 6453415

Browse files
committed
Fix prop type declaration
1 parent 6002551 commit 6453415

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/search.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import PropTypes from 'prop-types'
12
import getPostTypeStaticProps from '@/api/wordpress/_global/getPostTypeStaticProps'
23
import Layout from '@/components/common/Layout'
34
import AlgoliaResults from '@/components/molecules/AlgoliaResults'
45
import parseQuerystring from '@/functions/parseQuerystring'
56
import {useRouter} from 'next/router'
6-
import getPagePropTypes from '@/functions/getPagePropTypes'
7+
import {seoPropTypes} from '@/functions/getPagePropTypes'
78

89
/**
910
* Render the Search component.
@@ -40,5 +41,7 @@ export async function getStaticProps() {
4041
}
4142

4243
Search.propTypes = {
43-
...getPagePropTypes('page')
44+
post: PropTypes.shape({
45+
seo: {...seoPropTypes.seo}
46+
})
4447
}

0 commit comments

Comments
 (0)