Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1639 Rev 1643
Línea 2... Línea 2...
2
import { useDispatch, useSelector } from 'react-redux'
2
import { useDispatch, useSelector } from 'react-redux'
3
import { useForm } from 'react-hook-form'
3
import { useForm } from 'react-hook-form'
Línea 4... Línea 4...
4
 
4
 
5
import { sendReport } from '@app/services/reports'
5
import { sendReport } from '@app/services/reports'
-
 
6
import { addNotification } from '@app/redux/notification/notification.actions'
Línea 6... Línea 7...
6
import { addNotification } from '@app/redux/notification/notification.actions'
7
import { closeReportModal } from '@app/redux/report/report.actions'
7
 
8
 
8
import Form from '../UI/form/Form'
9
import Form from '../UI/form/Form'
9
import FormInputText from '../UI/form/FormInputText'
10
import FormInputText from '../UI/form/FormInputText'
10
import SelectInput from '../UI/form/SelectField'
-
 
Línea 11... Línea 11...
11
import Modal from '../UI/modal/Modal'
11
import SelectInput from '../UI/form/SelectField'
12
import { closeReportModal } from '@app/redux/report/report.actions'
12
import Modal from '../UI/modal/Modal'
13
 
13
 
14
const reasons = [
14
const reasons = [
Línea 71... Línea 71...
71
    } catch (error) {
71
    } catch (error) {
72
      dispatch(addNotification({ style: 'danger', msg: error.message }))
72
      dispatch(addNotification({ style: 'danger', msg: error.message }))
73
    }
73
    }
74
  })
74
  })
Línea 75... Línea 75...
75
 
75
 
Línea 76... Línea 76...
76
  const closeModal = () => dispatch()
76
  const closeModal = () => dispatch(closeReportModal())
77
 
77
 
78
  return (
78
  return (
79
    <Modal
79
    <Modal