From c87619c6ec5b53a88d01ff2b58864414b83d7f0e Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:42:35 +0200 Subject: [PATCH] fix(react): export correct themes --- packages/status-react/src/index.tsx | 2 +- packages/status-react/src/types/config.tsx | 2 +- packages/status-react/src/types/theme.tsx | 33 ---------------------- 3 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 packages/status-react/src/types/theme.tsx diff --git a/packages/status-react/src/index.tsx b/packages/status-react/src/index.tsx index 03b8cb54..84de0f61 100644 --- a/packages/status-react/src/index.tsx +++ b/packages/status-react/src/index.tsx @@ -1,5 +1,5 @@ export type { CommunityProps } from './modules/community' export { Community } from './modules/community' -export { darkTheme, lightTheme } from './styles/themes' +export { darkTheme, theme as lightTheme } from './styles/config' export type { Config } from './types/config' export { HashRouter, MemoryRouter } from 'react-router-dom' diff --git a/packages/status-react/src/types/config.tsx b/packages/status-react/src/types/config.tsx index 97b71e4d..c882d4bb 100644 --- a/packages/status-react/src/types/config.tsx +++ b/packages/status-react/src/types/config.tsx @@ -1,4 +1,4 @@ -import type { Theme } from './theme' +import type { Theme } from '../styles/config' import type { BrowserRouter, HashRouter, MemoryRouter } from 'react-router-dom' export type Environment = 'production' | 'test' diff --git a/packages/status-react/src/types/theme.tsx b/packages/status-react/src/types/theme.tsx deleted file mode 100644 index 899833d1..00000000 --- a/packages/status-react/src/types/theme.tsx +++ /dev/null @@ -1,33 +0,0 @@ -export interface Theme { - primary: string - secondary: string - tertiary: string - bodyBackgroundColor: string - sectionBackgroundColor: string - bodyBackgroundGradient: string - guestNameColor: string - iconColor: string - iconUserColor: string - iconTextColor: string - logoColor: string - activeChannelBackground: string - notificationColor: string - inputColor: string - border: string - buttonBg: string - buttonBgHover: string - buttonNoBg: string - buttonNoBgHover: string - skeletonLight: string - skeletonDark: string - redColor: string - greenColor: string - greenBg: string - mentionColor: string - mentionHover: string - mentionBg: string - mentionBgHover: string - shadow: string - reactionBg: string - blueBg: string -}