Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2453 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
import React from "react";
2
import { connect } from "react-redux";
3
import CoverSection from "../../../../shared/profile/edit/cover-section/CoverSection";
4
import ProfileInfo from "../../../../shared/profile/edit/profile-info/ProfileInfo";
5
import { profileTypes } from "../../../../shared/profile/Profile.types";
6
import CompanySize from "./company-size/CompanySize";
7
import FoundationYear from "./foundation-year/FoundationYear";
8
import Industry from "./industry/Industry";
9
import Locations from "./locations/Locations";
10
import Overview from "./overview/Overview";
11
import Website from "./website/Website";
12
 
13
const Edit = (props) => {
14
  // reduxDestructuring
15
  const { addNotification } = props;
16
 
17
  // backendVars Destructuring
18
  const {
19
    companySizes,
20
    industries,
21
    companyId,
22
    cover,
23
    imageSizeCover,
24
    image,
25
    follower,
26
    facebook,
27
    twitter,
28
    instagram,
29
    imageProfileCover,
30
    overview,
31
    locations,
32
    industry,
33
    companySize,
34
    foundationYear,
35
    website,
36
  } = props.backendVars;
37
  return (
38
    <React.Fragment>
39
      <CoverSection
40
        cover={cover}
41
        entityId={companyId}
42
        imageSizeCover={imageSizeCover}
43
        coverType={profileTypes.COMPANY}
44
      />
45
      <main>
46
        <div className="main-section">
47
          <div className="container">
48
            <div className="main-section-data">
49
              <div className="row">
50
                <div className="col-lg-3">
51
                  <div className="main-left-sidebar">
52
                    <ProfileInfo
53
                      entityId={companyId}
54
                      image={image}
55
                      follower={follower}
56
                      facebook={facebook}
57
                      twitter={twitter}
58
                      instagram={instagram}
59
                      imageProfileCover={imageProfileCover}
60
                      addNotification={addNotification}
61
                      profileType={profileTypes.COMPANY}
62
                    />
63
                    {/* <!--user_profile end--> */}
64
                  </div>
65
                  {/* <!--main-left-sidebar end--> */}
66
                </div>
67
                <div className="col-lg-6">
68
                  <div className="main-ws-sec">
69
                    <div className="user-tab-sec rewivew">
70
                      <h3>{/* <?php echo $company_name ?> */}</h3>
71
                    </div>
72
                    {/* <!--user-tab-sec end--> */}
73
                    <Overview
74
                      overview={overview}
75
                      companyId={companyId}
76
                      addNotification={addNotification}
77
                    />
78
                    <Locations
79
                      companyId={companyId}
80
                      locations={locations}
81
                      addNotification={addNotification}
82
                    />
83
                    {/* <!--user-profile-ov end--> */}
84
                    <Industry
85
                      companyId={companyId}
86
                      industry={industry}
87
                      industries={industries}
88
                      addNotification={addNotification}
89
                    />
90
                    {/* <!--user-profile-ov end--> */}
91
                    {/* <!--user-profile-ov end--> */}
92
                    <CompanySize
93
                      companyId={companyId}
94
                      companySize={companySize}
95
                      companySizes={companySizes}
96
                      addNotification={addNotification}
97
                    />
98
                    {/* <!--user-profile-ov end--> */}
99
                    {/* <!--user-profile-ov end--> */}
100
                    <FoundationYear
101
                      companyId={companyId}
102
                      foundationYear={foundationYear}
103
                      addNotification={addNotification}
104
                    />
105
                    {/* <!--user-profile-ov end--> */}
106
                    {/* <!--user-profile-ov end--> */}
107
                    <Website
108
                      companyId={companyId}
109
                      website={website}
110
                      addNotification={addNotification}
111
                    />
112
                    {/* <!--user-profile-ov end--> */}
113
                  </div>
114
                  {/* <!--main-ws-sec end--> */}
115
                </div>
116
                <div className="col-lg-3">
117
                  <div className="right-sidebar">
118
                    {/* <?php// echo $this->peopleViewedProfileHelper($company_id) ?> */}
119
                  </div>
120
                  {/* <!--right-sidebar end--> */}
121
                </div>
122
              </div>
123
            </div>
124
            {/* <!-- main-section-data end--> */}
125
          </div>
126
        </div>
127
      </main>
128
    </React.Fragment>
129
  );
130
};
131
 
132
const mapDispatchToProps = {
133
  addNotification: (notification) => addNotification(notification),
134
};
135
 
136
export default connect(null, mapDispatchToProps)(Edit);