优化
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user