1
0
Fork 0

(chore) lint and deepscan fixes

This commit is contained in:
Enoch Riese 2023-06-22 11:04:38 -05:00
parent 74cbfb4061
commit 9396e4c945
2 changed files with 4 additions and 3 deletions

View file

@ -40,7 +40,7 @@ export const useSanityPagination = (type, language) => {
if (cache.current[page]) { if (cache.current[page]) {
setPosts(cache.current[page]) setPosts(cache.current[page])
} else { } else {
fetchPage(page) fetchPage()
} }
}, [mounted, setMounted, page, type, language, setPosts]) }, [mounted, setMounted, page, type, language, setPosts])

View file

@ -40,7 +40,8 @@ export const PreviewTile = ({ img, slug, title }) => (
// ) // )
// } // }
const Posts = ({ posts, locale }) => { const Posts = ({ posts }) => {
const previews = []
posts.forEach((post) => { posts.forEach((post) => {
// for (const design of post.designs) { // for (const design of post.designs) {
// if (typeof designs[design] === 'undefined') designs[design] = [] // if (typeof designs[design] === 'undefined') designs[design] = []
@ -73,7 +74,7 @@ const ShowcaseIndexPage = (props) => {
<PageWrapper title={t('showcase')} {...props.page}> <PageWrapper title={t('showcase')} {...props.page}>
<div className="text-center"> <div className="text-center">
<Posts locale={props.page.locale} posts={posts} /> <Posts locale={props.page.locale} posts={posts} />
<Pagination {...{ current: page, total: totalPages, hrefBuilder, setPage }} /> <Pagination {...{ current: page, total: totalPages, setPage }} />
</div> </div>
</PageWrapper> </PageWrapper>
) )