(chore) lint and deepscan fixes
This commit is contained in:
parent
74cbfb4061
commit
9396e4c945
2 changed files with 4 additions and 3 deletions
|
@ -40,7 +40,7 @@ export const useSanityPagination = (type, language) => {
|
|||
if (cache.current[page]) {
|
||||
setPosts(cache.current[page])
|
||||
} else {
|
||||
fetchPage(page)
|
||||
fetchPage()
|
||||
}
|
||||
}, [mounted, setMounted, page, type, language, setPosts])
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ export const PreviewTile = ({ img, slug, title }) => (
|
|||
// )
|
||||
// }
|
||||
|
||||
const Posts = ({ posts, locale }) => {
|
||||
const Posts = ({ posts }) => {
|
||||
const previews = []
|
||||
posts.forEach((post) => {
|
||||
// for (const design of post.designs) {
|
||||
// if (typeof designs[design] === 'undefined') designs[design] = []
|
||||
|
@ -73,7 +74,7 @@ const ShowcaseIndexPage = (props) => {
|
|||
<PageWrapper title={t('showcase')} {...props.page}>
|
||||
<div className="text-center">
|
||||
<Posts locale={props.page.locale} posts={posts} />
|
||||
<Pagination {...{ current: page, total: totalPages, hrefBuilder, setPage }} />
|
||||
<Pagination {...{ current: page, total: totalPages, setPage }} />
|
||||
</div>
|
||||
</PageWrapper>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue