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 --- src/utils/hooks/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index da4ed9e..1e0bfe3 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -1,5 +1,6 @@ export * from './use-ackee'; export * from './use-article'; +export * from './use-articles-list'; export * from './use-boolean'; export * from './use-breadcrumb'; export * from './use-comments'; @@ -7,13 +8,11 @@ export * from './use-data-from-api'; export * from './use-form'; export * from './use-github-api'; export * from './use-headings-tree'; -export * from './use-is-mounted'; export * from './use-local-storage'; export * from './use-match-media'; export * from './use-on-click-outside'; export * from './use-on-route-change'; export * from './use-pagination'; -export * from './use-posts-list'; export * from './use-prism'; export * from './use-prism-theme'; export * from './use-redirection'; -- cgit v1.2.3