Skip to content

Commit 5de27b7

Browse files
Merge pull request #179 from guillermoscript:reset-pass-qa-change
Refactor Spanish translations for login page and reset password form
2 parents 77d506f + d94fdf5 commit 5de27b7

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

app/locales/es/views.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ export default {
239239
login: {
240240
loginHeader: 'Iniciar sesion',
241241
helpText: 'Ingresa tu correo para iniciar sesion.',
242-
forgotPassword: 'Olvidaste tu contraseña?',
243-
dontHaveAccount: 'No tienes cuenta?',
242+
forgotPassword: '¿Olvidaste tu contraseña?',
243+
dontHaveAccount: '¿No tienes cuenta?',
244244
description: 'Comienza tu aprendizaje con LMS AI.',
245245
form: {
246246
email: 'Correo',

components/auth/ResetPasswordForm.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { z } from 'zod'
1010

1111
import { resetPasswordFun } from '@/actions/auth/authActions'
1212
import { useI18n } from '@/app/locales/client'
13-
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
1413
import { Button } from '@/components/ui/button'
1514
import {
1615
Form,
@@ -137,11 +136,11 @@ export default function ResetPasswordForm({
137136
)}
138137
</button>
139138
</div>
140-
<p className="text-xs text-muted-foreground">
141-
{t('auth.resetPassword.passwordHelp')}
142-
</p>
143139
</FormControl>
144140
<FormMessage />
141+
<p className="text-xs text-muted-foreground">
142+
{t('auth.resetPassword.passwordHelp')}
143+
</p>
145144
</FormItem>
146145
)}
147146
/>
@@ -155,15 +154,6 @@ export default function ResetPasswordForm({
155154
</Button>
156155
</form>
157156
</Form>
158-
{searchParams.error && (
159-
<Alert variant="destructive">
160-
<AlertTitle>Error!</AlertTitle>
161-
<AlertDescription>
162-
{searchParams.error}
163-
</AlertDescription>
164-
</Alert>
165-
)}
166-
167157
<Link
168158
href="/auth/login"
169159
className="text-center text-sm cursor-pointer text-primary"

0 commit comments

Comments
 (0)