@@ -219,28 +219,30 @@ const ProfileForm: React.FC<{
219219 { ...register ( "email" , { required : FIELD_REQUIRED_ERROR_MSG } ) }
220220 />
221221 { /* Warning about email change and resend verification button */ }
222- < div className = "col-span-2" >
223- < p className = "text-xs text-gray-500" >
224- Note: Changing your email will require re-verification.
225- </ p >
226- { user . data ?. email_verified === false && (
227- < div className = "mt-2 flex items-center gap-2" >
228- < p className = "text-xs text-yellow-700" >
229- Your email is not verified.
230- </ p >
231- < Button
232- label = "Resend Verification Email"
233- onClick = { ( ) => {
234- resendEmailMutation . mutate ( undefined ) ;
235- } }
236- loading = { resendEmailMutation . isPending }
237- disabled = { resendEmailMutation . isPending }
238- variant = "dark"
239- className = "text-xs"
240- />
241- </ div >
242- ) }
243- </ div >
222+ { import . meta. env . VITE_EMAIL_VERIFICATION_ENABLED !== "false" && (
223+ < div className = "col-span-2" >
224+ < p className = "text-xs text-gray-500" >
225+ Note: Changing your email will require re-verification.
226+ </ p >
227+ { user . data ?. email_verified === false && (
228+ < div className = "mt-2 flex items-center gap-2" >
229+ < p className = "text-xs text-yellow-700" >
230+ Your email is not verified.
231+ </ p >
232+ < Button
233+ label = "Resend Verification Email"
234+ onClick = { ( ) => {
235+ resendEmailMutation . mutate ( undefined ) ;
236+ } }
237+ loading = { resendEmailMutation . isPending }
238+ disabled = { resendEmailMutation . isPending }
239+ variant = "dark"
240+ className = "text-xs"
241+ />
242+ </ div >
243+ ) }
244+ </ div >
245+ ) }
244246
245247 < Input
246248 required
0 commit comments