Proyectos de Subversion LeadersLinked - SPA

Rev

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

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