@@ -87,39 +87,30 @@ export const PasskeyRecoverAccountForm = withOverride(
8787 }
8888) ;
8989
90- < < << << < Updated upstream
91- export const PasskeyRecoverAccount = withOverride (
92- "PasskeyRecoverAccount" ,
93- ( props : RecoverFromProps ) : JSX . Element => {
94- = === ===
95- export const PasskeyRecoverAccountForm = withOverride (
96- "PasskeyRecoverAccountForm" ,
97- ( props : RecoverFormProps ) : JSX . Element => {
98- > >>> >>> Stashed changes
99- const t = useTranslation ( ) ;
100- const [ errorLabel , setErrorLabel ] = useState < string | undefined > ( undefined ) ;
90+ export const PasskeyRecoverAccount = withOverride ( "PasskeyRecoverAccount" , ( props : RecoverFormProps ) : JSX . Element => {
91+ const t = useTranslation ( ) ;
92+ const [ errorLabel , setErrorLabel ] = useState < string | undefined > ( undefined ) ;
10193
102- return (
103- < div data-supertokens = "passkeyRecoverAccountFormContainer" >
104- < div data-supertokens = "passkeyRecoverAccountFormHeaderWrapper" >
105- < div data-supertokens = "passkeyRecoverAccountFormHeader headerTitle withBackButton" >
106- < BackButton onClick = { props . onBackClick } />
107- { t ( "WEBAUTHN_RECOVER_ACCOUNT_LABEL" ) }
108- < span data-supertokens = "backButtonPlaceholder backButtonCommon" >
109- { /* empty span for spacing the back button */ }
110- </ span >
111- </ div >
112- < div data-supertokens = "passkeyRecoverAccountFormSubHeader" >
113- { t ( "WEBAUTHN_RECOVER_ACCOUNT_SUBHEADER_LABEL" ) }
114- </ div >
94+ return (
95+ < div data-supertokens = "passkeyRecoverAccountFormContainer" >
96+ < div data-supertokens = "passkeyRecoverAccountFormHeaderWrapper" >
97+ < div data-supertokens = "passkeyRecoverAccountFormHeader headerTitle withBackButton" >
98+ < BackButton onClick = { props . onBackClick } />
99+ { t ( "WEBAUTHN_RECOVER_ACCOUNT_LABEL" ) }
100+ < span data-supertokens = "backButtonPlaceholder backButtonCommon" >
101+ { /* empty span for spacing the back button */ }
102+ </ span >
103+ </ div >
104+ < div data-supertokens = "passkeyRecoverAccountFormSubHeader" >
105+ { t ( "WEBAUTHN_RECOVER_ACCOUNT_SUBHEADER_LABEL" ) }
115106 </ div >
116- { errorLabel !== undefined && (
117- < div data-supertokens = "errorContainer" >
118- < RecoverableError errorMessageLabel = { errorLabel } />
119- </ div >
120- ) }
121- < PasskeyRecoverAccountFormInner { ...props } setError = { setErrorLabel } />
122107 </ div >
123- ) ;
124- }
125- ) ;
108+ { errorLabel !== undefined && (
109+ < div data-supertokens = "errorContainer" >
110+ < RecoverableError errorMessageLabel = { errorLabel } />
111+ </ div >
112+ ) }
113+ < PasskeyRecoverAccountForm { ...props } setError = { setErrorLabel } />
114+ </ div >
115+ ) ;
116+ } ) ;
0 commit comments