From 60c49f18389ff625177a57277ef8f292a31097bf Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 28 Oct 2023 17:12:58 +0200 Subject: refactor(providers,hooks): rewrite PrismThemeProvider & usePrismTheme * reuse Theme provider logic * move DOM mutation from provider to hook * add a script to init theme before page load --- src/utils/hooks/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index 4372ca0..f1bb31e 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -1,7 +1,5 @@ export * from './use-ackee'; -export * from './use-add-classname'; export * from './use-article'; -export * from './use-attributes'; export * from './use-breadcrumb'; export * from './use-comments'; export * from './use-data-from-api'; @@ -15,7 +13,7 @@ export * from './use-mutation-observer'; export * from './use-on-click-outside'; export * from './use-pagination'; export * from './use-prism'; -export * from './use-query-selector-all'; +export * from './use-prism-theme'; export * from './use-reading-time'; export * from './use-redirection'; export * from './use-reduced-motion'; -- cgit v1.2.3