Skip to content

Commit 61994a0

Browse files
committed
Fix imports
1 parent 3a3b8e0 commit 61994a0

File tree

12 files changed

+35
-34
lines changed

12 files changed

+35
-34
lines changed

apps/meteor/client/components/UserInfo/UserInfo.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
import type { IUser, Serialized } from '@rocket.chat/core-typings';
22
import { Box, Margins, Tag } from '@rocket.chat/fuselage';
3-
import { useUserDisplayName, ContextualbarScrollableContent } from '@rocket.chat/ui-client';
4-
import type { TranslationKey } from '@rocket.chat/ui-contexts';
5-
import type { ReactElement, ReactNode } from 'react';
6-
import { memo } from 'react';
7-
import { useTranslation } from 'react-i18next';
8-
9-
import { useTimeAgo } from '../../hooks/useTimeAgo';
10-
import { useUserCustomFields } from '../../hooks/useUserCustomFields';
113
import {
4+
useUserDisplayName,
5+
ContextualbarScrollableContent,
126
InfoPanel,
137
InfoPanelActionGroup,
148
InfoPanelAvatar,
@@ -17,7 +11,14 @@ import {
1711
InfoPanelSection,
1812
InfoPanelText,
1913
InfoPanelTitle,
20-
} from '../InfoPanel';
14+
} from '@rocket.chat/ui-client';
15+
import type { TranslationKey } from '@rocket.chat/ui-contexts';
16+
import type { ReactElement, ReactNode } from 'react';
17+
import { memo } from 'react';
18+
import { useTranslation } from 'react-i18next';
19+
20+
import { useTimeAgo } from '../../hooks/useTimeAgo';
21+
import { useUserCustomFields } from '../../hooks/useUserCustomFields';
2122
import MarkdownText from '../MarkdownText';
2223
import UTCClock from '../UTCClock';
2324
import { UserCardRoles } from '../UserCard';

apps/meteor/client/views/admin/deviceManagement/DeviceManagementInfo/DeviceManagementInfo.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ import {
77
ContextualbarScrollableContent,
88
ContextualbarFooter,
99
ContextualbarTitle,
10+
InfoPanel,
11+
InfoPanelField,
12+
InfoPanelLabel,
13+
InfoPanelText,
1014
} from '@rocket.chat/ui-client';
1115
import { useRoute, useUserPresence } from '@rocket.chat/ui-contexts';
1216
import type { ReactElement } from 'react';
1317
import { useCallback } from 'react';
1418
import { useTranslation } from 'react-i18next';
1519

16-
import { InfoPanel, InfoPanelField, InfoPanelLabel, InfoPanelText } from '../../../../components/InfoPanel';
1720
import { useDeviceLogout } from '../../../../hooks/useDeviceLogout';
1821
import { useFormatDateAndTime } from '../../../../hooks/useFormatDateAndTime';
1922

apps/meteor/client/views/omnichannel/additionalForms/MaxChatsPerAgentDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { InfoPanelLabel, InfoPanelText } from '@rocket.chat/ui-client';
12
import { useTranslation } from 'react-i18next';
23

3-
import { InfoPanelLabel, InfoPanelText } from '../../../components/InfoPanel';
44
import { useHasLicenseModule } from '../../../hooks/useHasLicenseModule';
55

66
const MaxChatsPerAgentDisplay = ({ maxNumberSimultaneousChat = 0 }) => {

apps/meteor/client/views/omnichannel/agents/AgentInfo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import {
55
ContextualbarHeader,
66
ContextualbarScrollableContent,
77
ContextualbarSkeletonBody,
8+
InfoPanelLabel,
9+
InfoPanelText,
810
} from '@rocket.chat/ui-client';
911
import { useEndpoint, useRouter } from '@rocket.chat/ui-contexts';
1012
import { useQuery } from '@tanstack/react-query';
1113
import type { HTMLAttributes } from 'react';
1214
import { useTranslation } from 'react-i18next';
1315

14-
import { InfoPanelLabel, InfoPanelText } from '../../../components/InfoPanel';
1516
import { UserInfoAvatar, UserInfoUsername } from '../../../components/UserInfo';
1617
import { UserStatus } from '../../../components/UserStatus';
1718
import { MaxChatsPerAgentDisplay } from '../additionalForms';

apps/meteor/client/views/omnichannel/components/CustomField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Box } from '@rocket.chat/fuselage';
2+
import { InfoPanelField, InfoPanelLabel, InfoPanelText } from '@rocket.chat/ui-client';
23
import { useEndpoint } from '@rocket.chat/ui-contexts';
34
import { useQuery } from '@tanstack/react-query';
45
import { useTranslation } from 'react-i18next';
56

6-
import { InfoPanelField, InfoPanelLabel, InfoPanelText } from '../../../components/InfoPanel';
77
import { FormSkeleton } from '../directory/components/FormSkeleton';
88

99
type CustomFieldProps = {

apps/meteor/client/views/omnichannel/directory/calls/contextualBar/InfoField.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { InfoPanelField, InfoPanelLabel, InfoPanelText } from '@rocket.chat/ui-client';
12
import type { ReactElement } from 'react';
23

3-
import { InfoPanelField, InfoPanelLabel, InfoPanelText } from '../../../../../components/InfoPanel';
4-
54
type InfoFieldPropsType = {
65
label: string;
76
info: string;

apps/meteor/client/views/omnichannel/directory/calls/contextualBar/VoipInfo.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import {
99
ContextualbarScrollableContent,
1010
ContextualbarFooter,
1111
ContextualbarDialog,
12+
InfoPanel,
13+
InfoPanelField,
14+
InfoPanelLabel,
15+
InfoPanelText,
1216
} from '@rocket.chat/ui-client';
1317
import moment from 'moment';
1418
import type { ReactElement } from 'react';
@@ -17,7 +21,6 @@ import { useTranslation } from 'react-i18next';
1721

1822
import { InfoField } from './InfoField';
1923
import { VoipInfoCallButton } from './VoipInfoCallButton';
20-
import { InfoPanel, InfoPanelField, InfoPanelLabel, InfoPanelText } from '../../../../../components/InfoPanel';
2124
import { UserStatus } from '../../../../../components/UserStatus';
2225
import { useIsCallReady } from '../../../../../contexts/CallContext';
2326
import { parseOutboundPhoneNumber } from '../../../../../lib/voip/parseOutboundPhoneNumber';

apps/meteor/client/views/omnichannel/directory/chats/ChatInfo/ChatInfo.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import type { IOmnichannelRoom, IVisitor } from '@rocket.chat/core-typings';
22
import { Box, Margins, Tag, Button, ButtonGroup } from '@rocket.chat/fuselage';
33
import { useEffectEvent } from '@rocket.chat/fuselage-hooks';
4-
import { ContextualbarScrollableContent, ContextualbarFooter } from '@rocket.chat/ui-client';
4+
import { ContextualbarScrollableContent, ContextualbarFooter, InfoPanelField, InfoPanelLabel, InfoPanelText } from '@rocket.chat/ui-client';
55
import type { IRouterPaths } from '@rocket.chat/ui-contexts';
66
import { useToastMessageDispatch, useRoute, useUserSubscription, useTranslation, usePermission, useUserId } from '@rocket.chat/ui-contexts';
77
import moment from 'moment';
88
import { useMemo } from 'react';
99

1010
import DepartmentField from './DepartmentField';
1111
import VisitorClientInfo from './VisitorClientInfo';
12-
import { InfoPanelField, InfoPanelLabel, InfoPanelText } from '../../../../../components/InfoPanel';
1312
import MarkdownText from '../../../../../components/MarkdownText';
1413
import { useFormatDateAndTime } from '../../../../../hooks/useFormatDateAndTime';
1514
import { useFormatDuration } from '../../../../../hooks/useFormatDuration';

apps/meteor/client/views/room/contextualBar/Info/RoomInfo/ABAC/RoomInfoABACSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { IRoom } from '@rocket.chat/core-typings';
22
import { Box, Divider, Tag } from '@rocket.chat/fuselage';
3+
import { InfoPanelField, InfoPanelLabel } from '@rocket.chat/ui-client';
34
import { useSetting } from '@rocket.chat/ui-contexts';
45
import { useTranslation } from 'react-i18next';
56

6-
import { InfoPanelField, InfoPanelLabel } from '../../../../../../components/InfoPanel';
77
import { RoomIcon } from '../../../../../../components/RoomIcon';
88

99
// TODO: Remove type union when ABAC is implemented

apps/meteor/client/views/room/contextualBar/Info/RoomInfo/RoomInfo.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ import {
1010
ContextualbarClose,
1111
ContextualbarTitle,
1212
ContextualbarDialog,
13-
} from '@rocket.chat/ui-client';
14-
import { useTranslation } from 'react-i18next';
15-
16-
import RoomInfoActions from './RoomInfoActions';
17-
import {
1813
InfoPanel,
1914
InfoPanelActionGroup,
2015
InfoPanelAvatar,
@@ -23,7 +18,10 @@ import {
2318
InfoPanelSection,
2419
InfoPanelText,
2520
InfoPanelTitle,
26-
} from '../../../../../components/InfoPanel';
21+
} from '@rocket.chat/ui-client';
22+
import { useTranslation } from 'react-i18next';
23+
24+
import RoomInfoActions from './RoomInfoActions';
2725
import RetentionPolicyCallout from '../../../../../components/InfoPanel/RetentionPolicyCallout';
2826
import MarkdownText from '../../../../../components/MarkdownText';
2927
import { useRetentionPolicy } from '../../../hooks/useRetentionPolicy';

0 commit comments

Comments
 (0)