This commit is contained in:
2026-05-23 12:23:47 +08:00
parent 7879cef91e
commit 73fa41007b
6 changed files with 164 additions and 30 deletions

View File

@@ -21,6 +21,7 @@ interface OTPBindUIProps {
onError: (error: string) => void;
isDebug: boolean;
additionalParams?: any;
initialMobile?: string;
}
export const OTPBindUI: React.FC<OTPBindUIProps> = ({
@@ -34,11 +35,12 @@ export const OTPBindUI: React.FC<OTPBindUIProps> = ({
onError,
isDebug,
additionalParams = {},
initialMobile = '',
}) => {
const [state, actions] = useOTPBind(
walletType,
{ onRequestOTP, onVerifyOTP, onSuccess, onError, isDebug },
{ otpLength, mobileLength, additionalParams }
{ otpLength, mobileLength, additionalParams, initialMobile }
);
const isLoading = state.loading || state.step === 'processing';