Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 5 | Rev 1437 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5 Rev 748
Línea 12... Línea 12...
12
const AnswerModal = ({
12
const AnswerModal = ({
13
  show = false,
13
  show = false,
14
  currentAnswer = '',
14
  currentAnswer = '',
15
  url = '',
15
  url = '',
16
  onClose = () => null,
16
  onClose = () => null,
17
  onComplete = () => null,
17
  onComplete = () => null
18
}) => {
18
}) => {
19
  const [loading, setLoading] = useState(false)
19
  const [loading, setLoading] = useState(false)
20
  const labels = useSelector(({ intl }) => intl.labels)
20
  const labels = useSelector(({ intl }) => intl.labels)
21
  const dispatch = useDispatch()
21
  const dispatch = useDispatch()
Línea 56... Línea 56...
56
    setValue('description', currentAnswer)
56
    setValue('description', currentAnswer)
57
  }, [currentAnswer])
57
  }, [currentAnswer])
Línea 58... Línea 58...
58
 
58
 
59
  return (
59
  return (
60
    <Modal show={show}>
60
    <Modal show={show}>
61
      <Modal.Header className="pb-0">
61
      <Modal.Header className='pb-0'>
62
        <Modal.Title>
62
        <Modal.Title>
63
          {currentAnswer
63
          {currentAnswer
64
            ? labels.my_coach_answer_edit
64
            ? labels.my_coach_answer_edit
65
            : labels.my_coach_answer_add}
65
            : labels.my_coach_answer_add}
Línea 77... Línea 77...
77
            />
77
            />
78
            {errors.description && (
78
            {errors.description && (
79
              <FormErrorFeedback>{labels.error_field_empty}</FormErrorFeedback>
79
              <FormErrorFeedback>{labels.error_field_empty}</FormErrorFeedback>
80
            )}
80
            )}
Línea 81... Línea 81...
81
 
81
 
82
            <Button className="mt-3 mr-2" variant="primary" type="submit">
82
            <Button className='mt-3 mr-2' variant='primary' type='submit'>
83
              {labels.accept}
83
              {labels.accept}
84
            </Button>
84
            </Button>
85
            <Button className="btn-secondary mt-3" onClick={onClose}>
85
            <Button className='btn-secondary mt-3' onClick={onClose}>
86
              {labels.cancel}
86
              {labels.cancel}
87
            </Button>
87
            </Button>
88
          </Form>
88
          </Form>
89
        )}
89
        )}