Skip to content

Commit 31a135c

Browse files
authored
chore: Use InputBoxSkeleton instead of InputBox.Skeleton (RocketChat#37231)
1 parent 9282732 commit 31a135c

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

apps/meteor/client/views/admin/engagementDashboard/EngagementDashboardCardFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { Box, Flex, InputBox } from '@rocket.chat/fuselage';
1+
import { Box, Flex, InputBoxSkeleton } from '@rocket.chat/fuselage';
22
import type { ReactElement, ReactNode } from 'react';
33

44
type EngagementDashboardCardFilterProps = {
55
children?: ReactNode;
66
};
77

8-
const EngagementDashboardCardFilter = ({ children = <InputBox.Skeleton /> }: EngagementDashboardCardFilterProps): ReactElement => (
8+
const EngagementDashboardCardFilter = ({ children = <InputBoxSkeleton /> }: EngagementDashboardCardFilterProps): ReactElement => (
99
<Box rcx-card__row display='flex' justifyContent='flex-end' alignItems='center' wrap='no-wrap' pbe={8}>
1010
{children && <Flex.Item grow={0}>{children}</Flex.Item>}
1111
</Box>

apps/meteor/client/views/admin/settings/Setting/SettingSkeleton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Field, FieldLabel, FieldRow, Flex, InputBox, Skeleton } from '@rocket.chat/fuselage';
1+
import { Field, FieldLabel, FieldRow, Flex, InputBoxSkeleton, Skeleton } from '@rocket.chat/fuselage';
22
import type { ReactElement } from 'react';
33

44
const SettingSkeleton = (): ReactElement => (
@@ -9,7 +9,7 @@ const SettingSkeleton = (): ReactElement => (
99
</FieldLabel>
1010
</Flex.Item>
1111
<FieldRow>
12-
<InputBox.Skeleton />
12+
<InputBoxSkeleton />
1313
</FieldRow>
1414
</Field>
1515
);

apps/meteor/client/views/room/contextualBar/RoomMembers/InviteUsers/InviteLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box, Field, FieldLabel, FieldRow, UrlInput, Icon, Button, InputBox } from '@rocket.chat/fuselage';
1+
import { Box, Field, FieldLabel, FieldRow, UrlInput, Icon, Button, InputBoxSkeleton } from '@rocket.chat/fuselage';
22
import { useId, type ReactElement } from 'react';
33
import { useTranslation } from 'react-i18next';
44

@@ -22,7 +22,7 @@ const InviteLink = ({ linkText, captionText, onClickEdit }: InviteLinkProps): Re
2222
{t('Invite_Link')}
2323
</FieldLabel>
2424
<FieldRow>
25-
{!linkText && <InputBox.Skeleton />}
25+
{!linkText && <InputBoxSkeleton />}
2626
{linkText && (
2727
<UrlInput id={inviteLinkId} value={linkText} addon={<Icon onClick={(): Promise<void> => copy()} name='copy' size='x16' />} />
2828
)}

packages/web-ui-registration/src/template/FormSkeleton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Field, FieldLabel, FieldRow, FieldHint, FieldDescription, InputBox, Skeleton } from '@rocket.chat/fuselage';
1+
import { Field, FieldLabel, FieldRow, FieldHint, FieldDescription, Skeleton, InputBoxSkeleton } from '@rocket.chat/fuselage';
22
import { Form } from '@rocket.chat/layout';
33
import type { ReactElement } from 'react';
44

@@ -19,7 +19,7 @@ const FormSkeleton = (): ReactElement => {
1919
<Skeleton />
2020
</FieldDescription>
2121
<FieldRow>
22-
<InputBox.Skeleton />
22+
<InputBoxSkeleton />
2323
</FieldRow>
2424
<FieldHint>
2525
<Skeleton />

0 commit comments

Comments
 (0)