@@ -14,7 +14,7 @@ import {
1414import { useForm } from "react-hook-form" ;
1515import { standardSchemaResolver } from "@hookform/resolvers/standard-schema" ;
1616
17- import { Form , FormControl , FormField , FormItem , FormLabel , FormMessage } from "@/components/ui/form" ;
17+ import { Form , FormControl , FormDescription , FormField , FormItem , FormLabel , FormMessage } from "@/components/ui/form" ;
1818import { Button } from "@/components/ui/button" ;
1919import { InputOTP , InputOTPGroup , InputOTPSlot } from "@/components/ui/input-otp" ;
2020
@@ -47,12 +47,14 @@ function SmsMultiFactorAssertionPhoneForm(props: SmsMultiFactorAssertionPhoneFor
4747
4848 return (
4949 < div className = "space-y-4" >
50- < div >
51- < label className = "text-sm font-medium text-gray-700" > { getTranslation ( ui , "labels" , "phoneNumber" ) } </ label >
52- < div className = "mt-1 p-3 bg-gray-50 border rounded-md text-gray-600" >
53- { ( props . hint as PhoneMultiFactorInfo ) . phoneNumber || "No phone number available" }
54- </ div >
55- </ div >
50+ < FormItem >
51+ < FormLabel > { getTranslation ( ui , "labels" , "phoneNumber" ) } </ FormLabel >
52+ < FormDescription >
53+ { getTranslation ( ui , "messages" , "mfaSmsAssertionPrompt" , {
54+ phoneNumber : ( props . hint as PhoneMultiFactorInfo ) . phoneNumber || "" ,
55+ } ) }
56+ </ FormDescription >
57+ </ FormItem >
5658 < div className = "fui-recaptcha-container" ref = { recaptchaContainerRef } />
5759 < Button onClick = { onSubmit } disabled = { ui . state !== "idle" } >
5860 { getTranslation ( ui , "labels" , "sendCode" ) }
@@ -102,6 +104,7 @@ function SmsMultiFactorAssertionVerifyForm(props: SmsMultiFactorAssertionVerifyF
102104 render = { ( { field } ) => (
103105 < FormItem >
104106 < FormLabel > { getTranslation ( ui , "labels" , "verificationCode" ) } </ FormLabel >
107+ < FormDescription > { getTranslation ( ui , "prompts" , "smsVerificationPrompt" ) } </ FormDescription >
105108 < FormControl >
106109 < InputOTP maxLength = { 6 } { ...field } >
107110 < InputOTPGroup >
0 commit comments