Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2452 | Rev 2613 | Ir a la última revisión | | Comparar con el anterior | 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 { addNotification } from "../../../../redux/notification/notification.actions";
4
import Accessibility from "./accessibility/Accessibility";
5
import Cover from "./cover/Cover";
6
import GroupProfile from "./group-profile/GroupProfile";
7
import Industry from "./industry/Industry";
8
import Overview from "./overview/Overview";
9
import Privacy from "./privacy/Privacy";
10
import Type from "./type/Type";
11
import Website from "./website/Website";
12
 
13
const Edit = (props) => {
14
  // props destructuring
15
 
16
  // backendVars destructuring
17
  const {
18
    groupId,
19
    cover,
20
    imageSizeCover,
21
    image,
22
    imageProfileCover,
23
    totalMembers,
24
    name,
25
    overview,
26
    groupType,
27
    groupTypes,
28
    industry,
29
    industries,
30
    privacy,
31
    privacies,
32
    accessibility,
33
    accessibilities,
34
    website,
35
  } = props.backendVars;
36
 
37
  // redux destructuring
38
  const { addNotification } = props;
39
  return (
40
    <React.Fragment>
41
      <Cover
42
        cover={cover}
43
        groupId={groupId}
44
        imageSizeCover={imageSizeCover}
45
        addNotification={addNotification}
46
      />
47
      <main>
48
        <div className="main-section">
49
          <div className="container">
50
            <div className="main-section-data">
2451 stevensc 51
              <div className="main-left-sidebar">
52
                <GroupProfile
53
                  groupId={groupId}
54
                  image={image}
55
                  imageProfileCover={imageProfileCover}
56
                  addNotification={addNotification}
57
                  totalMembers={totalMembers}
58
                />
2452 stevensc 59
              </div>
60
              <div className="main-ws-sec">
61
                <div className="user-tab-sec rewivew">
62
                  <h3>{name}</h3>
63
                </div>
64
                {/* <!--user-tab-sec start--> */}
65
                <Overview
66
                  groupId={groupId}
67
                  overview={overview}
68
                  addNotification={addNotification}
69
                />
70
                {/* <!--user-tab-sec endit--> */}
1 www 71
 
2452 stevensc 72
                {/* <!--user-tab-sec start--> */}
73
                <Type
74
                  groupId={groupId}
75
                  groupType={groupType}
76
                  groupTypes={groupTypes}
77
                  addNotification={addNotification}
78
                />
79
                {/* <!--user-tab-sec endit--> */}
1 www 80
 
2452 stevensc 81
                {/* <!--user-tab-sec start--> */}
82
                <Industry
83
                  groupId={groupId}
84
                  industry={industry}
85
                  industries={industries}
86
                  addNotification={addNotification}
87
                />
88
                {/* <!--user-tab-sec endit--> */}
1 www 89
 
2452 stevensc 90
                {/* <!--user-tab-sec start--> */}
91
                <Privacy
92
                  groupId={groupId}
93
                  privacy={privacy}
94
                  privacies={privacies}
95
                  addNotification={addNotification}
96
                />
97
                {/* <!--user-tab-sec endit--> */}
1 www 98
 
2452 stevensc 99
                {/* <!--user-tab-sec start--> */}
100
                <Accessibility
101
                  groupId={groupId}
102
                  accessibility={accessibility}
103
                  accessibilities={accessibilities}
104
                  addNotification={addNotification}
2612 stevensc 105
                  privacy={privacy}
2452 stevensc 106
                />
107
                {/* <!--user-tab-sec endit--> */}
1 www 108
 
2452 stevensc 109
                {/* <!--user-tab-sec start--> */}
110
                <Website
111
                  groupId={groupId}
112
                  website={website}
113
                  addNotification={addNotification}
114
                />
115
                {/* <!--user-tab-sec endit--> */}
1 www 116
              </div>
2452 stevensc 117
              <div className="right-sidebar">
118
              </div>
1 www 119
            </div>
120
          </div>
121
        </div>
122
      </main>
123
    </React.Fragment>
124
  );
125
};
126
 
127
// const mapStateToProps = (state) => ({});
128
 
129
const mapDispatchToProps = {
130
  addNotification: (notification) => addNotification(notification),
131
};
132
 
133
export default connect(null, mapDispatchToProps)(Edit);