From b0494a7757db30ea53d8d1d0f59d78f9bdca2094 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 13 Apr 2022 22:25:35 -0300 Subject: [PATCH] Fix CI --- apps/meteor/client/components/RawText.tsx | 4 ++-- apps/meteor/client/components/Skeleton.tsx | 4 ++-- apps/meteor/client/components/Subtitle.tsx | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/meteor/client/components/RawText.tsx b/apps/meteor/client/components/RawText.tsx index 28dc6954333fa..ba643dc48ebf0 100644 --- a/apps/meteor/client/components/RawText.tsx +++ b/apps/meteor/client/components/RawText.tsx @@ -1,6 +1,6 @@ -import React from 'react'; +import React, { ReactElement } from 'react'; // @deprecated -const RawText = ({ children }) => ; +const RawText = ({ children }: { children: string }): ReactElement => ; export default RawText; diff --git a/apps/meteor/client/components/Skeleton.tsx b/apps/meteor/client/components/Skeleton.tsx index 5056e7c52cbfe..ef15454052eec 100644 --- a/apps/meteor/client/components/Skeleton.tsx +++ b/apps/meteor/client/components/Skeleton.tsx @@ -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): ReactElement => ( diff --git a/apps/meteor/client/components/Subtitle.tsx b/apps/meteor/client/components/Subtitle.tsx index 26c7e680b6b8d..4cb89d2f84f7e 100644 --- a/apps/meteor/client/components/Subtitle.tsx +++ b/apps/meteor/client/components/Subtitle.tsx @@ -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 ; }