mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
types: page query optional
This commit is contained in:
parent
f9b96ae968
commit
deb65723f6
@ -28,6 +28,7 @@ const Category: NextPage<CategoryProps> = ({ data, query }) => {
|
||||
}
|
||||
</div>
|
||||
<Paginator totalPage={data.totalPage} currentPage={data.currentPage} pathname={`/categories/${query.category}`} />
|
||||
<Advertisement />
|
||||
</Container>
|
||||
</>
|
||||
}
|
||||
@ -57,7 +58,7 @@ interface Context extends NextPageContext {
|
||||
|
||||
interface URLQuery extends ParsedUrlQuery {
|
||||
category: string
|
||||
page: string
|
||||
page?: string
|
||||
}
|
||||
|
||||
export default Category
|
||||
Loading…
x
Reference in New Issue
Block a user