Skip to content

Commit 01324d4

Browse files
Add a merge fix
1 parent b983a3e commit 01324d4

File tree

2 files changed

+25
-40
lines changed

2 files changed

+25
-40
lines changed

lib/ts/recipe/webauthn/components/themes/signUp/recoverAccountForm.tsx

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
});

stories/utils.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,7 @@ export function resetAndInitST(
9999
});
100100
}
101101

102-
export type FirstFactor =
103-
| "otp-phone"
104-
| "otp-email"
105-
| "link-phone"
106-
| "link-email"
107-
| "thirdparty"
108-
| "emailpassword"
102+
export type FirstFactor = "otp-phone" | "otp-email" | "link-phone" | "link-email" | "thirdparty" | "emailpassword";
109103
export type ProviderId = "google" | "github";
110104

111105
export type AuthPageConf = {

0 commit comments

Comments
 (0)