Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3632 | Rev 3634 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3630 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3
import { Modal } from 'react-bootstrap'
4
import FeedContent from './FeedContent'
5
import FeedHeader from './FeedHeader'
6
 
7
const FeedModal = ({
8
    isShow,
9
    handleClose,
10
    feed
11
}) => {
12
 
13
    const {
14
        owner_file_image,
15
        owner_file_video,
16
        owner_file_image_preview,
17
        owner_file_document,
18
        owner_description,
19
        shared_name,
20
        shared_image,
21
        shared_time_elapse,
22
        shared_description,
23
        shared_file_video,
24
        shared_file_image_preview,
25
        shared_file_image,
26
        shared_file_document,
27
        owner_name,
28
        owner_image,
29
        owner_time_elapse,
30
        owner_url,
31
        feed_delete_url,
32
        feed_unique
33
    } = feed
34
 
35
    return (
36
        <Modal
37
            show={isShow}
38
            onHide={handleClose}
39
            dialogClassName="modal-lg"
40
        >
41
            <Modal.Header closeButton />
3633 stevensc 42
            <Modal.Body>
43
                <div className="d-flex flex-column-reverse flex-md-row modal-body">
44
                    <div className="col-md-8 col-sm-12 col-12">
45
                        <FeedContent
46
                            showDescription={false}
47
                            isShare={shared_name ? true : false}
48
                            ownerFileImage={owner_file_image}
49
                            ownerFileVideo={owner_file_video}
50
                            ownerFileImagePreview={owner_file_image_preview}
51
                            ownerFileDocument={owner_file_document}
52
                            ownerDescription={owner_description}
53
                            sharedItem={{
54
                                name: shared_name,
55
                                image: shared_image,
56
                                time_elapse: shared_time_elapse,
57
                                description: shared_description,
58
                                file_video: shared_file_video,
59
                                file_image_preview: shared_file_image_preview,
60
                                file_image: shared_file_image,
61
                                file_document: shared_file_document
62
                            }}
63
                        />
64
                    </div>
65
                    <div className="col-md-4 col-sm-12 col-12">
66
                        <FeedHeader
67
                            ownerName={owner_name}
68
                            ownerImage={owner_image}
69
                            ownerTimeElapse={owner_time_elapse}
70
                            ownerUrl={owner_url}
71
                            feedDeleteUrl={feed_delete_url}
72
                            feedUnique={feed_unique}
73
                        />
74
                    </div>
3630 stevensc 75
                </div>
3633 stevensc 76
            </Modal.Body>
3630 stevensc 77
        </Modal>
78
    )
79
}
80
 
81
export default FeedModal