Skip to content

Commit e41b3af

Browse files
authored
refactor(ui-client): Move useThemeMode (#39348)
1 parent 357bfcc commit e41b3af

14 files changed

Lines changed: 145 additions & 243 deletions

File tree

apps/meteor/client/sidebar/footer/SidebarFooterDefault.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { css } from '@rocket.chat/css-in-js';
22
import { Box, SidebarDivider, Palette, SidebarFooter as Footer } from '@rocket.chat/fuselage';
3+
import { useThemeMode } from '@rocket.chat/ui-client';
34
import { useSetting } from '@rocket.chat/ui-contexts';
4-
import { useThemeMode } from '@rocket.chat/ui-theming';
55
import DOMPurify from 'dompurify';
66
import type { ReactElement } from 'react';
77

apps/meteor/client/views/root/AppErrorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box, PaletteStyleTag, States, StatesAction, StatesActions, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
2-
import { useThemeMode } from '@rocket.chat/ui-theming';
2+
import { useThemeMode } from '@rocket.chat/ui-client';
33
import type { ErrorInfo, ReactElement } from 'react';
44

55
type AppErrorPageProps = {

apps/meteor/client/views/root/MainLayout/LayoutWithSidebar.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jest.mock('../../navigation/providers/RoomsNavigationProvider', () => ({
2121
}));
2222

2323
jest.mock('@rocket.chat/ui-client', () => ({
24+
...jest.requireActual('@rocket.chat/ui-client'),
2425
FeaturePreview: ({ children }: { children: ReactNode }) => <>{children}</>,
2526
FeaturePreviewOn: ({ children }: { children: ReactNode }) => <>{children}</>,
2627
FeaturePreviewOff: ({ children }: { children: ReactNode }) => <>{children}</>,

apps/meteor/client/views/root/MainLayout/MainLayoutStyleTags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PaletteStyleTag } from '@rocket.chat/fuselage';
2-
import { useThemeMode } from '@rocket.chat/ui-theming';
2+
import { useThemeMode } from '@rocket.chat/ui-client';
33

44
import { codeBlock } from '../lib/codeBlockStyles';
55

apps/meteor/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@
154154
"@rocket.chat/ui-composer": "workspace:^",
155155
"@rocket.chat/ui-contexts": "workspace:^",
156156
"@rocket.chat/ui-kit": "workspace:~",
157-
"@rocket.chat/ui-theming": "workspace:^",
158157
"@rocket.chat/ui-video-conf": "workspace:^",
159158
"@rocket.chat/ui-voip": "workspace:^",
160159
"@rocket.chat/web-ui-registration": "workspace:^",

ee/packages/ui-theming/CHANGELOG.md

Lines changed: 0 additions & 149 deletions
This file was deleted.

ee/packages/ui-theming/package.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

ee/packages/ui-theming/src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

ee/packages/ui-theming/tsconfig-build.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

ee/packages/ui-theming/tsconfig.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)