import React, { useEffect, useRef } from 'react'; import { InboxArrowDownIcon } from '@heroicons/react/20/solid'; import { Options } from '../../interfaces'; type Props = { registrationStep: string; registrationIsVisible: boolean; setRegistrationIsVisible: ( visible: boolean ) => void; onStep: ( requestedStep: string ) => void; registrationName: string; registrationEmail: string; setRegistrationName: ( name: string ) => void; setRegistrationEmail: ( email: string ) => void; pin: string; setPin: ( pin: string ) => void; options: Options; }; export const PinCheck: React.FC< Props > = ( { registrationStep, onStep, registrationEmail, pin, setPin, options, }: Props ) => { const inputRef = useRef< HTMLInputElement >( null ); // Force focus on the input when component mounts useEffect( () => { const timer = setTimeout( () => { if ( inputRef.current ) { inputRef.current.focus(); } }, 100 ); // Small delay to ensure DOM is ready return () => clearTimeout( timer ); }, [ registrationStep ] ); return (
{ registrationEmail }
<>

{ registrationStep !== 'bad pin' && registrationStep !== 'error pin' && ( setPin( e.target.value ) } onBlur={ ( e ) => setPin( e.target.value ) } size={ 6 } maxLength={ 6 } autoComplete="off" autoCorrect="off" autoCapitalize="off" spellCheck="false" required className={ 'relative z-[100] text-center block w-48 font-black rounded-md border-0 p-5 bg-white/5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:' + options.focus + ' sm:text-3xl' } /> ) } { ( registrationStep === 'bad pin' || registrationStep === 'error pin' ) && ( <> setPin( e.target.value ) } onChange={ ( e ) => setPin( e.target.value ) } size={ 6 } maxLength={ 6 } required className="relative z-[100] text-center block w-48 font-black rounded-md border-0 p-5 text-white shadow-sm ring-inset focus:ring-4 sm:text-3xl bg-sky-950/50 ring-white ring-2" /> { registrationStep === 'bad pin' && (

{ ' ' } that didn't work, please try again

) } { registrationStep === 'error pin' && (

{ ' ' } unable to connect to verify pin, please try later

) } ) }

Please check Junk / Spam folders and the addressed used, the email should arrive within a few minuites and will expire after a short while. You can always refresh and try again if your having trouble.

{ registrationStep === 'pin check' && ( <>
) } { registrationStep !== 'pin check' && ( <>
) }
); };