@@ -55,11 +55,10 @@ export function VerifyIdentityModal({
5555
5656 useEffect ( ( ) => {
5757 if ( isOpen ) {
58- setCurrentStep ( initialStep ) ;
59- } else {
60- setCurrentStep ( initialStep ) ;
58+ setCurrentStep ( context === 'publish' ? 'IDENTITY' : initialStep ) ;
59+ setPublicationsSubstep ( 'DOI' ) ;
6160 }
62- } , [ isOpen , initialStep ] ) ;
61+ } , [ isOpen , initialStep , context ] ) ;
6362
6463 const handleNext = ( ) => {
6564 if ( currentStep === 'INTRO' ) {
@@ -194,6 +193,11 @@ export function VerifyIdentityModal({
194193 return (
195194 < VerificationWithPersonaStep
196195 onVerificationStatusChange = { handleVerificationStatusChange }
196+ templateId = {
197+ isPublishContext
198+ ? process . env . NEXT_PUBLIC_PERSONA_TEMPLATE_ID_PUBLISH_FLOW
199+ : undefined
200+ }
197201 />
198202 ) ;
199203
@@ -394,13 +398,20 @@ export function VerifyIdentityModal({
394398 leaveFrom = "opacity-100 scale-100"
395399 leaveTo = "opacity-0 scale-95"
396400 >
397- < Dialog . Panel className = "w-full max-w-2xl transform overflow-hidden rounded-2xl bg-white text-left align-middle shadow-xl transition-all" >
401+ < Dialog . Panel
402+ className = { `w-full transform overflow-hidden rounded-2xl bg-white text-left align-middle shadow-xl transition-all ${ currentStep === 'IDENTITY' ? 'max-w-[400px]' : 'max-w-2xl' } ` }
403+ >
398404 < div className = "relative" >
399405 { /* Header with close button - only show for non-INTRO steps */ }
400406 { currentStep !== 'INTRO' && (
401- < div className = "border-b border-gray-200 px-6 py-4 flex items-center justify-between" >
407+ < div
408+ className = { `border-b border-gray-200 px-6 py-4 flex items-center justify-between ${ currentStep === 'IDENTITY' ? 'fixed top-0 left-0 right-0 !border-0 ml-20' : '' } ` }
409+ >
402410 < div className = "flex items-center" >
403- < Dialog . Title as = "h3" className = "text-lg font-medium text-gray-900" >
411+ < Dialog . Title
412+ as = "h3"
413+ className = { `text-lg font-medium text-gray-900 ${ currentStep === 'IDENTITY' ? 'hidden' : '' } ` }
414+ >
404415 Verify Identity
405416 </ Dialog . Title >
406417 </ div >
0 commit comments