Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6301 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6301 Rev 6311
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { Button, Modal } from 'react-bootstrap'
2
import { Modal } from 'react-bootstrap'
3
import FormErrorFeedback from '../../../shared/form-error-feedback/FormErrorFeedback'
3
import FormErrorFeedback from '../../../shared/form-error-feedback/FormErrorFeedback'
4
import { useForm } from 'react-hook-form'
4
import { useForm } from 'react-hook-form'
5
import { axios } from '../../../utils'
5
import { axios } from '../../../utils'
6
import { addNotification } from '../../../redux/notification/notification.actions'
6
import { addNotification } from '../../../redux/notification/notification.actions'
7
import { useDispatch } from 'react-redux'
7
import { useDispatch } from 'react-redux'
Línea 57... Línea 57...
57
            ref={register({ required: 'Este campo es requerido' })}
57
            ref={register({ required: 'Este campo es requerido' })}
58
          />
58
          />
59
          {errors.name && (
59
          {errors.name && (
60
            <FormErrorFeedback>{errors.name.message}</FormErrorFeedback>
60
            <FormErrorFeedback>{errors.name.message}</FormErrorFeedback>
61
          )}
61
          )}
-
 
62
          <div className="mt-3 d-flex gap-3">
62
          <Button type="submit">Enviar</Button>
63
            <button className="btn btn-primary" type="submit">
-
 
64
              Enviar
-
 
65
            </button>
63
          <Button variant="danger" onClick={onClose}>
66
            <button className="btn btn-secondary" onClick={onClose}>
64
            Cancelar
67
              Cancelar
65
          </Button>
68
            </button>
-
 
69
          </div>
66
        </form>
70
        </form>
67
      </Modal.Body>
71
      </Modal.Body>
68
    </Modal>
72
    </Modal>
69
  )
73
  )
70
}
74
}