From bcba40513bab3e53d97e403178d018e5bc943edd Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Mon, 11 Dec 2023 01:37:54 +0100 Subject: [PATCH] refactor: consistency fixes --- lib/build/passwordless-shared4.js | 2 +- lib/build/recipe/passwordless/types.d.ts | 2 ++ .../recipe/passwordless/components/themes/mfa/loadingScreen.tsx | 2 +- lib/ts/recipe/passwordless/types.ts | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/build/passwordless-shared4.js b/lib/build/passwordless-shared4.js index 7c436b853..99cb01285 100644 --- a/lib/build/passwordless-shared4.js +++ b/lib/build/passwordless-shared4.js @@ -3148,7 +3148,7 @@ var OTPLoadingScreen = function () { ) ); }; -var LoadingScreen = uiEntry.withOverride("OTPLoadingScreen", OTPLoadingScreen); +var LoadingScreen = uiEntry.withOverride("PasswordlessMFAOTPLoadingScreen_Override", OTPLoadingScreen); var MFAFooter = uiEntry.withOverride("PasswordlessMFAFooter", function PasswordlessMFAFooter(props) { var _a, _b; diff --git a/lib/build/recipe/passwordless/types.d.ts b/lib/build/recipe/passwordless/types.d.ts index 4859c2c99..0ba0b84ac 100644 --- a/lib/build/recipe/passwordless/types.d.ts +++ b/lib/build/recipe/passwordless/types.d.ts @@ -3,6 +3,7 @@ import type { MFAFooter } from "./components/themes/mfa/mfaFooter"; import type { MFAHeader } from "./components/themes/mfa/mfaHeader"; import type { MFAOTPFooter } from "./components/themes/mfa/mfaOTPFooter"; import type { MFAOTPHeader } from "./components/themes/mfa/mfaOTPHeader"; +import type { LoadingScreen } from "./components/themes/mfa/loadingScreen"; import type { CloseTabScreen } from "./components/themes/signInUp/closeTabScreen"; import type { EmailForm } from "./components/themes/signInUp/emailForm"; import type { EmailOrPhoneForm } from "./components/themes/signInUp/emailOrPhoneForm"; @@ -347,4 +348,5 @@ export declare type ComponentOverrideMap = { PasswordlessMFAFooter_Override?: ComponentOverride; PasswordlessMFAOTPHeader_Override?: ComponentOverride; PasswordlessMFAOTPFooter_Override?: ComponentOverride; + PasswordlessMFAOTPLoadingScreen_Override?: ComponentOverride; }; diff --git a/lib/ts/recipe/passwordless/components/themes/mfa/loadingScreen.tsx b/lib/ts/recipe/passwordless/components/themes/mfa/loadingScreen.tsx index f73385883..36b871861 100644 --- a/lib/ts/recipe/passwordless/components/themes/mfa/loadingScreen.tsx +++ b/lib/ts/recipe/passwordless/components/themes/mfa/loadingScreen.tsx @@ -27,4 +27,4 @@ const OTPLoadingScreen: React.FC = () => { ); }; -export const LoadingScreen = withOverride("OTPLoadingScreen", OTPLoadingScreen); +export const LoadingScreen = withOverride("PasswordlessMFAOTPLoadingScreen_Override", OTPLoadingScreen); diff --git a/lib/ts/recipe/passwordless/types.ts b/lib/ts/recipe/passwordless/types.ts index 3992c9111..4461a2cc3 100644 --- a/lib/ts/recipe/passwordless/types.ts +++ b/lib/ts/recipe/passwordless/types.ts @@ -14,6 +14,7 @@ */ import type { LinkClickedScreen } from "./components/themes/linkClickedScreen"; +import type { LoadingScreen } from "./components/themes/mfa/loadingScreen"; import type { MFAFooter } from "./components/themes/mfa/mfaFooter"; import type { MFAHeader } from "./components/themes/mfa/mfaHeader"; import type { MFAOTPFooter } from "./components/themes/mfa/mfaOTPFooter"; @@ -434,4 +435,5 @@ export type ComponentOverrideMap = { PasswordlessMFAFooter_Override?: ComponentOverride; PasswordlessMFAOTPHeader_Override?: ComponentOverride; PasswordlessMFAOTPFooter_Override?: ComponentOverride; + PasswordlessMFAOTPLoadingScreen_Override?: ComponentOverride; };