Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Box, Flex, InputBox } from '@rocket.chat/fuselage';
import { Box, Flex, InputBoxSkeleton } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';

type EngagementDashboardCardFilterProps = {
children?: ReactNode;
};

const EngagementDashboardCardFilter = ({ children = <InputBox.Skeleton /> }: EngagementDashboardCardFilterProps): ReactElement => (
const EngagementDashboardCardFilter = ({ children = <InputBoxSkeleton /> }: EngagementDashboardCardFilterProps): ReactElement => (
<Box rcx-card__row display='flex' justifyContent='flex-end' alignItems='center' wrap='no-wrap' pbe={8}>
{children && <Flex.Item grow={0}>{children}</Flex.Item>}
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Field, FieldLabel, FieldRow, Flex, InputBox, Skeleton } from '@rocket.chat/fuselage';
import { Field, FieldLabel, FieldRow, Flex, InputBoxSkeleton, Skeleton } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';

const SettingSkeleton = (): ReactElement => (
Expand All @@ -9,7 +9,7 @@ const SettingSkeleton = (): ReactElement => (
</FieldLabel>
</Flex.Item>
<FieldRow>
<InputBox.Skeleton />
<InputBoxSkeleton />
</FieldRow>
</Field>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Field, FieldLabel, FieldRow, UrlInput, Icon, Button, InputBox } from '@rocket.chat/fuselage';
import { Box, Field, FieldLabel, FieldRow, UrlInput, Icon, Button, InputBoxSkeleton } from '@rocket.chat/fuselage';
import { useId, type ReactElement } from 'react';
import { useTranslation } from 'react-i18next';

Expand All @@ -22,7 +22,7 @@ const InviteLink = ({ linkText, captionText, onClickEdit }: InviteLinkProps): Re
{t('Invite_Link')}
</FieldLabel>
<FieldRow>
{!linkText && <InputBox.Skeleton />}
{!linkText && <InputBoxSkeleton />}
{linkText && (
<UrlInput id={inviteLinkId} value={linkText} addon={<Icon onClick={(): Promise<void> => copy()} name='copy' size='x16' />} />
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/web-ui-registration/src/template/FormSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Field, FieldLabel, FieldRow, FieldHint, FieldDescription, InputBox, Skeleton } from '@rocket.chat/fuselage';
import { Field, FieldLabel, FieldRow, FieldHint, FieldDescription, Skeleton, InputBoxSkeleton } from '@rocket.chat/fuselage';
import { Form } from '@rocket.chat/layout';
import type { ReactElement } from 'react';

Expand All @@ -19,7 +19,7 @@ const FormSkeleton = (): ReactElement => {
<Skeleton />
</FieldDescription>
<FieldRow>
<InputBox.Skeleton />
<InputBoxSkeleton />
</FieldRow>
<FieldHint>
<Skeleton />
Expand Down
Loading