Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 964 Rev 965
Línea 4... Línea 4...
4
import { useDispatch } from 'react-redux'
4
import { useDispatch } from 'react-redux'
5
import { addNotification } from '../../redux/notification/notification.actions'
5
import { addNotification } from '../../redux/notification/notification.actions'
6
import parse from 'html-react-parser'
6
import parse from 'html-react-parser'
Línea 7... Línea 7...
7
 
7
 
8
const EventModal = ({ event, show, onClose }) => {
-
 
9
  const { agenda, url, title } = event
8
const EventModal = ({ event, show, onClose }) => {
Línea 10... Línea 9...
10
  const dispatch = useDispatch()
9
  const dispatch = useDispatch()
11
 
10
 
Línea 33... Línea 32...
33
  }
32
  }
Línea 34... Línea 33...
34
 
33
 
35
  return (
34
  return (
36
    <Modal show={show} onHide={onClose}>
35
    <Modal show={show} onHide={onClose}>
37
      <Modal.Header className='pb-0' closeButton>
36
      <Modal.Header className='pb-0' closeButton>
38
        <Modal.Title>{title}</Modal.Title>
37
        <Modal.Title>{event?.title}</Modal.Title>
39
      </Modal.Header>
38
      </Modal.Header>
40
      <Modal.Body>
39
      <Modal.Body>
41
        <div
40
        <div
42
          className={url && 'cursor-pointer'}
41
          className={event?.url && 'cursor-pointer'}
43
          onClick={() => getBackendVarUrl(url)}
42
          onClick={() => getBackendVarUrl(event?.url)}
44
        >
43
        >
45
          {agenda && parse(agenda)}
44
          {event?.agenda && parse(event?.agenda)}
46
        </div>
45
        </div>
47
      </Modal.Body>
46
      </Modal.Body>
48
    </Modal>
47
    </Modal>
49
  )
48
  )