Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1406 Rev 1426
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
-
 
2
import { axios } from '../../utils'
-
 
3
import { Modal } from 'react-bootstrap'
2
import { useDispatch } from 'react-redux'
4
import { useDispatch } from 'react-redux'
3
import { Box } from '@mui/material'
5
import { addNotification } from '../../redux/notification/notification.actions'
4
import parse from 'html-react-parser'
6
import parse from 'html-react-parser'
Línea 5... Línea -...
5
 
-
 
6
import { axios } from '@app/utils'
-
 
7
import { addNotification } from '@app/redux/notification/notification.actions'
-
 
8
 
-
 
9
import Modal from 'components/UI/modal/Modal'
-
 
10
 
7
 
11
const EventModal = ({ event, show, onClose }) => {
8
const EventModal = ({ event, show, onClose }) => {
Línea 12... Línea 9...
12
  const dispatch = useDispatch()
9
  const dispatch = useDispatch()
13
 
10
 
Línea 33... Línea 30...
33
        dispatch(addNotification({ style: 'danger', message: err.message }))
30
        dispatch(addNotification({ style: 'danger', message: err.message }))
34
      })
31
      })
35
  }
32
  }
Línea 36... Línea 33...
36
 
33
 
37
  return (
34
  return (
-
 
35
    <Modal show={show} onHide={onClose}>
-
 
36
      <Modal.Header className='pb-0' closeButton>
-
 
37
        <Modal.Title>{event?.title}</Modal.Title>
38
    <Modal title={event?.title} show={show} onClose={onClose}>
38
      </Modal.Header>
39
      <Box
39
      <Modal.Body>
40
        sx={{
40
        <div
41
          cursor: event?.url ? 'cursor-pointer' : 'default'
-
 
42
        }}
41
          className={event?.url && 'cursor-pointer'}
43
        onClick={() => getBackendVarUrl(event?.url)}
42
          onClick={() => getBackendVarUrl(event?.url)}
44
      >
43
        >
45
        {event?.agenda ? parse(event.agenda) : null}
44
          {event?.agenda && parse(event?.agenda)}
-
 
45
        </div>
46
      </Box>
46
      </Modal.Body>
47
    </Modal>
47
    </Modal>
48
  )
48
  )
Línea 49... Línea 49...
49
}
49
}