From dfdbf6cac1fe3719dc71e130129d28e04ba4e225 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 1 Dec 2023 13:26:44 +0100 Subject: refactor(pages): refine Thematic pages * add a table of contents (however posts heading are not included) * rename posts list section title * add a useThematic hook to refresh thematic contents * add a useThematicLists hook to refresh thematics list * add a `notIn` filter in thematics list fetcher to directly remove unwanted thematics * add Cypress tests --- src/types/data.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types/data.ts') diff --git a/src/types/data.ts b/src/types/data.ts index 21f773e..80a8bf3 100644 --- a/src/types/data.ts +++ b/src/types/data.ts @@ -273,6 +273,7 @@ export type ThematicMeta = Omit & { }; export type Thematic = Page & { + id: number; meta: ThematicMeta; }; @@ -283,5 +284,6 @@ export type TopicMeta = Omit & { }; export type Topic = Page & { + id: number; meta: TopicMeta; }; -- cgit v1.2.3