Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2453 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
5373 stevensc 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'
1 www 12
 
13
const Edit = (props) => {
14
  // reduxDestructuring
5373 stevensc 15
  const { addNotification } = props
1 www 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,
5373 stevensc 35
    website
36
  } = props.backendVars
1 www 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">
2453 stevensc 49
              <div className="main-left-sidebar">
50
                <ProfileInfo
51
                  entityId={companyId}
52
                  image={image}
53
                  follower={follower}
54
                  facebook={facebook}
55
                  twitter={twitter}
56
                  instagram={instagram}
57
                  imageProfileCover={imageProfileCover}
58
                  addNotification={addNotification}
59
                  profileType={profileTypes.COMPANY}
60
                />
61
                {/* <!--user_profile end--> */}
62
              </div>
63
              <div className="main-ws-sec">
64
                <div className="user-tab-sec rewivew">
65
                  <h3>{/* <?php echo $company_name ?> */}</h3>
1 www 66
                </div>
2453 stevensc 67
                {/* <!--user-tab-sec end--> */}
68
                <Overview
69
                  overview={overview}
70
                  companyId={companyId}
71
                  addNotification={addNotification}
72
                />
73
                <Locations
74
                  companyId={companyId}
75
                  locations={locations}
76
                  addNotification={addNotification}
77
                />
78
                {/* <!--user-profile-ov end--> */}
79
                <Industry
80
                  companyId={companyId}
81
                  industry={industry}
82
                  industries={industries}
83
                  addNotification={addNotification}
84
                />
85
                {/* <!--user-profile-ov end--> */}
86
                {/* <!--user-profile-ov end--> */}
87
                <CompanySize
88
                  companyId={companyId}
89
                  companySize={companySize}
90
                  companySizes={companySizes}
91
                  addNotification={addNotification}
92
                />
93
                {/* <!--user-profile-ov end--> */}
94
                {/* <!--user-profile-ov end--> */}
95
                <FoundationYear
96
                  companyId={companyId}
97
                  foundationYear={foundationYear}
98
                  addNotification={addNotification}
99
                />
100
                {/* <!--user-profile-ov end--> */}
101
                {/* <!--user-profile-ov end--> */}
102
                <Website
103
                  companyId={companyId}
104
                  website={website}
105
                  addNotification={addNotification}
106
                />
107
                {/* <!--user-profile-ov end--> */}
1 www 108
              </div>
2453 stevensc 109
              <div className="right-sidebar">
110
              </div>
1 www 111
            </div>
112
          </div>
113
        </div>
114
      </main>
115
    </React.Fragment>
5373 stevensc 116
  )
117
}
1 www 118
 
119
const mapDispatchToProps = {
5373 stevensc 120
  addNotification: (notification) => addNotification(notification)
121
}
1 www 122
 
5373 stevensc 123
export default connect(null, mapDispatchToProps)(Edit)