Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Apr 14, 2022
1 parent 0e22a33 commit b0494a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/client/components/RawText.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import React, { ReactElement } from 'react';

// @deprecated
const RawText = ({ children }) => <span dangerouslySetInnerHTML={{ __html: children }} />;
const RawText = ({ children }: { children: string }): ReactElement => <span dangerouslySetInnerHTML={{ __html: children }} />;

export default RawText;
4 changes: 2 additions & 2 deletions apps/meteor/client/components/Skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import React, { ComponentProps, ReactElement } from 'react';

export const FormSkeleton = (props) => (
export const FormSkeleton = (props: ComponentProps<typeof Box>): ReactElement => (
<Box w='full' pb='x24' {...props}>
<Skeleton mbe='x8' />
<Skeleton mbe='x4' />
Expand Down
3 changes: 2 additions & 1 deletion apps/meteor/client/components/Subtitle.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Box } from '@rocket.chat/fuselage';
import React, { ReactElement } from 'react';

function Subtitle(props): ReactElement {
// @deprecated
function Subtitle(props: { children: ReactElement }): ReactElement {
return <Box color='default' fontFamily='sans' fontScale='h4' marginBlockEnd='x8' withRichContent {...props} />;
}

Expand Down

0 comments on commit b0494a7

Please sign in to comment.