Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3630 | Rev 3633 | 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 />
42
            <div className="row">
43
                <div className="col-md-8 col-sm-12 col-12">
44
                    <FeedContent
45
                        isShare={shared_name ? true : false}
46
                        ownerFileImage={owner_file_image}
47
                        ownerFileVideo={owner_file_video}
3632 stevensc 48
                        ownerFileImagePreview={owner_file_image_preview}
3630 stevensc 49
                        ownerFileDocument={owner_file_document}
50
                        ownerDescription={owner_description}
51
                        sharedItem={{
52
                            name: shared_name,
53
                            image: shared_image,
54
                            time_elapse: shared_time_elapse,
55
                            description: shared_description,
56
                            file_video: shared_file_video,
57
                            file_image_preview: shared_file_image_preview,
58
                            file_image: shared_file_image,
59
                            file_document: shared_file_document
60
                        }}
61
                    />
62
                </div>
63
                <div className="col-md-4 col-sm-12 col-12">
64
                    <FeedHeader
65
                        ownerName={owner_name}
66
                        ownerImage={owner_image}
67
                        ownerTimeElapse={owner_time_elapse}
68
                        ownerUrl={owner_url}
69
                        feedDeleteUrl={feed_delete_url}
70
                        feedUnique={feed_unique}
71
                    />
72
                </div>
73
            </div>
74
        </Modal>
75
    )
76
}
77
 
78
export default FeedModal