@@ -11,7 +11,6 @@ import { AuthError } from 'common/models/auth';
11
11
import { useAuth } from 'common/hooks/useAuth' ;
12
12
import { useProgress } from 'common/hooks/useProgress' ;
13
13
import Input from 'common/components/Input/Input' ;
14
- import HeaderRow from 'common/components/Text/HeaderRow' ;
15
14
import { formatAuthError } from 'common/utils/auth-errors' ;
16
15
import AuthErrorDisplay from 'common/components/Auth/AuthErrorDisplay' ;
17
16
import AuthLoadingIndicator from 'common/components/Auth/AuthLoadingIndicator' ;
@@ -152,17 +151,14 @@ const VerificationForm = ({
152
151
>
153
152
{ ( { dirty, isSubmitting } ) => (
154
153
< Form data-testid = { `${ testid } -form` } >
155
- < HeaderRow border >
156
- < div > { t ( 'email-verification .title' , { ns : 'auth' } ) } </ div >
157
- </ HeaderRow >
154
+ < h1 className = "ls-verification-form__title" >
155
+ { t ( 'confirm-account .title' , { ns : 'auth' } ) }
156
+ </ h1 >
158
157
159
158
< div className = "ls-verification-form__message" >
160
- < IonText > { t ( 'email-verification.message' , { ns : 'auth' } ) } </ IonText >
161
- { email && (
162
- < IonText className = "ls-verification-form__email" >
163
- < strong > { email } </ strong >
164
- </ IonText >
165
- ) }
159
+ < IonText >
160
+ { t ( 'confirm-account.message' , { ns : 'auth' } ) } { email && < strong > { email } </ strong > }
161
+ </ IonText >
166
162
</ div >
167
163
168
164
< Input
@@ -184,18 +180,29 @@ const VerificationForm = ({
184
180
disabled = { isSubmitting || ! dirty || isLoading }
185
181
data-testid = { `${ testid } -button-submit` }
186
182
>
187
- { t ( 'confirm' , { ns : 'auth' } ) }
183
+ { t ( 'confirm-account.submit ' , { ns : 'auth' } ) }
188
184
</ IonButton >
189
185
190
- < div className = "ls-verification-form__resend" >
186
+ < IonButton
187
+ fill = "outline"
188
+ color = "medium"
189
+ className = "ls-verification-form__resend-button"
190
+ expand = "block"
191
+ onClick = { handleResendCode }
192
+ disabled = { isSubmitting || isLoading }
193
+ data-testid = { `${ testid } -button-resend` }
194
+ >
195
+ { t ( 'resend-code' , { ns : 'auth' } ) }
196
+ </ IonButton >
197
+
198
+ < div className = "ls-verification-form__back-link" >
191
199
< IonButton
192
200
fill = "clear"
193
201
color = "medium"
194
- onClick = { handleResendCode }
195
- disabled = { isSubmitting || isLoading }
196
- data-testid = { `${ testid } -button-resend` }
202
+ routerLink = "/auth/signin"
203
+ data-testid = { `${ testid } -button-back` }
197
204
>
198
- { t ( 'resend-code ' , { ns : 'auth' } ) }
205
+ ← { t ( 'back-to-login ' , { ns : 'auth' } ) }
199
206
</ IonButton >
200
207
</ div >
201
208
</ Form >
0 commit comments