mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +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>
|
</div>
|
||||||
<Paginator totalPage={data.totalPage} currentPage={data.currentPage} pathname={`/categories/${query.category}`} />
|
<Paginator totalPage={data.totalPage} currentPage={data.currentPage} pathname={`/categories/${query.category}`} />
|
||||||
|
<Advertisement />
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
@ -57,7 +58,7 @@ interface Context extends NextPageContext {
|
|||||||
|
|
||||||
interface URLQuery extends ParsedUrlQuery {
|
interface URLQuery extends ParsedUrlQuery {
|
||||||
category: string
|
category: string
|
||||||
page: string
|
page?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Category
|
export default Category
|
||||||
Loading…
x
Reference in New Issue
Block a user