Commit d22e0ca5 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se agregó el manejo de errores del formulario de reseteo

parent e3bd1629
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -13,12 +13,29 @@ export const PasswordForm = ({ control }: PasswordFormProps) => {
      <Controller
        control={control}
        name="newPassword"
        render={({ field: { onChange, onBlur, value } }) => (
        render={({ field: { onChange, onBlur, value }, formState: {errors} }) => (
          <CustomTextInput
            isPassword
            onBlur={onBlur}
            value={value}
            label="Password"
            errors={errors.newPassword?.message}
            textInputProps={{
              onChangeText: (value) => onChange(value),
            }}
          />
        )}
      />
      <Controller
        control={control}
        name="newPasswordConfirmation"
        render={({ field: { onChange, onBlur, value }, formState: {errors} }) => (
          <CustomTextInput
            isPassword
            onBlur={onBlur}
            value={value}
            errors={errors.newPasswordConfirmation?.message}
            label="Password Confirmation"
            textInputProps={{
              onChangeText: (value) => onChange(value),
            }}