Proyectos de Subversion LeadersLinked - SPA

Rev

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

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