From 53b63ac27c2275262db9a04be02210a3287aa71d Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 1 Dec 2023 19:34:58 +0100 Subject: refactor(pages): refine Blog pages * replace usePostsList with useArticlesList to keep names coherent * remove useIsMounted hook * rewrite useRedirection hook * add redirect in getStaticProps to avoid unecessary fetching * move Pagination component in a noscript tag * use hooks to refresh thematics and topics lists * complete Cypress tests --- tests/fixtures/wp-posts.fixture.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/fixtures') diff --git a/tests/fixtures/wp-posts.fixture.ts b/tests/fixtures/wp-posts.fixture.ts index a1b1e4a..7adc928 100644 --- a/tests/fixtures/wp-posts.fixture.ts +++ b/tests/fixtures/wp-posts.fixture.ts @@ -1,6 +1,6 @@ import type { WPPost } from '../../src/types'; -export const wpPostsFixture: WPPost[] = [ +export const wpPostsFixture = [ { acfPosts: null, author: { @@ -174,4 +174,4 @@ export const wpPostsFixture: WPPost[] = [ slug: '/post-4', title: 'Post 4', }, -]; +] satisfies WPPost[]; -- cgit v1.2.3