From e308a923c2a72261dff8313eb884bac7295d049b Mon Sep 17 00:00:00 2001 From: sam-keen Date: Fri, 25 Mar 2022 16:45:12 +0000 Subject: [PATCH] Moved the theme switcher hook into a shared lib --- apps/trading/pages/_app.page.tsx | 2 +- libs/react-helpers/src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/trading/pages/_app.page.tsx b/apps/trading/pages/_app.page.tsx index 3c59855d9..d5b1a8668 100644 --- a/apps/trading/pages/_app.page.tsx +++ b/apps/trading/pages/_app.page.tsx @@ -10,7 +10,7 @@ import { ThemeSwitcher } from '@vegaprotocol/ui-toolkit'; import { ApolloProvider } from '@apollo/client'; import { AppLoader } from '../components/app-loader'; import { VegaWalletButton } from '../components/vega-wallet-connect-button'; -import { useThemeSwitcher } from '../hooks/use-theme-switcher'; +import { useThemeSwitcher } from '@vegaprotocol/react-helpers'; import './styles.css'; diff --git a/libs/react-helpers/src/index.ts b/libs/react-helpers/src/index.ts index 17009c30a..189328d48 100644 --- a/libs/react-helpers/src/index.ts +++ b/libs/react-helpers/src/index.ts @@ -6,3 +6,4 @@ export * from './lib/grid-cells'; export * from './lib/storage'; export * from './hooks/use-apply-grid-transaction'; +export * from './hooks/use-theme-switcher';