Skip to content

Commit

Permalink
fix: mfa otp loading screen override
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Dec 15, 2023
1 parent 5fe17b3 commit 677cdac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/build/passwordless-shared4.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ const OTPLoadingScreen: React.FC = () => {
);
};

export const LoadingScreen = withOverride("PasswordlessMFAOTPLoadingScreen_Override", OTPLoadingScreen);
export const LoadingScreen = withOverride("PasswordlessMFAOTPLoadingScreen", OTPLoadingScreen);
2 changes: 2 additions & 0 deletions test/unit/componentOverrides.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import { MFAFooter } from "../../lib/ts/recipe/passwordless/components/themes/mf
import { MFAHeader } from "../../lib/ts/recipe/passwordless/components/themes/mfa/mfaHeader";
import { MFAOTPFooter } from "../../lib/ts/recipe/passwordless/components/themes/mfa/mfaOTPFooter";
import { MFAOTPHeader } from "../../lib/ts/recipe/passwordless/components/themes/mfa/mfaOTPHeader";
import { LoadingScreen as MFAOTPLoadingScreen } from "../../lib/ts/recipe/passwordless/components/themes/mfa/loadingScreen";
import { BlockedScreen } from "../../lib/ts/recipe/totp/components/themes/mfa/blockedScreen";
import { CodeForm } from "../../lib/ts/recipe/totp/components/themes/mfa/totpCodeForm";
import { CodeVerificationFooter } from "../../lib/ts/recipe/totp/components/themes/mfa/totpCodeVerificationFooter";
Expand Down Expand Up @@ -127,6 +128,7 @@ describe("Theme component overrides", () => {
PasswordlessMFAHeader_Override: MFAHeader,
PasswordlessMFAOTPFooter_Override: MFAOTPFooter,
PasswordlessMFAOTPHeader_Override: MFAOTPHeader,
PasswordlessMFAOTPLoadingScreen_Override: MFAOTPLoadingScreen,
ThirdPartyPasswordlessHeader_Override: ThirdPartyPasswordlessHeader,
TOTPBlockedScreen_Override: BlockedScreen,
TOTPCodeForm_Override: CodeForm,
Expand Down

0 comments on commit 677cdac

Please sign in to comment.