From d696846925ae363ac7c0cef90512003111e72102 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Fri, 16 Aug 2024 03:24:52 +0530 Subject: [PATCH] cleanup. Signed-off-by: krishna2323 --- src/pages/signin/SignInPage.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pages/signin/SignInPage.tsx b/src/pages/signin/SignInPage.tsx index 9e80e4a44dc6..729faae5e90b 100644 --- a/src/pages/signin/SignInPage.tsx +++ b/src/pages/signin/SignInPage.tsx @@ -147,10 +147,7 @@ function getRenderOptions({ }; } -const SignInPage = forwardRef(function SignInPage( - {credentials, account, activeClients = [], preferredLocale, shouldEnableMaxHeight = true}: SignInPageInnerProps, - ref: ForwardedRef, -) { +function SignInPage({credentials, account, activeClients = [], preferredLocale, shouldEnableMaxHeight = true}: SignInPageInnerProps, ref: ForwardedRef) { const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); const {translate, formatPhoneNumber} = useLocalize(); @@ -339,10 +336,11 @@ const SignInPage = forwardRef(function SignInPage( ); -}); +} type SignInPageProps = SignInPageInnerProps; type SignInPageOnyxProps = SignInPageInnerOnyxProps; +const SignInPageWithRef = forwardRef(SignInPage); function SignInPageThemeWrapper(props: SignInPageProps, ref: ForwardedRef) { return ( @@ -350,7 +348,7 @@ function SignInPageThemeWrapper(props: SignInPageProps, ref: ForwardedRef -