Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | | 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 Category from "./category/Category";
4
import Degrees from "./degrees/Degrees";
5
import EmploymentType from "./employment-type/EmploymentType";
6
import Experience from "./experience/Experience";
7
import Languages from "./languages/Languages";
8
import LastDateOfApplication from "./last-date-of-application/LastDateOfApplication";
9
import Location from "./location/Location";
10
import Overview from "./overview/Overview";
11
import Salary from "./salary/Salary";
12
import Skills from "./skills/Skills";
13
 
14
const Edit = (props) => {
15
  // reduxDestructuring
16
  const { addNotification } = props;
17
  // backendVars destructuring
18
  const {
19
    companyId,
20
    jobId,
21
    jobTitle,
22
    overview,
23
    lastDateOfApplication,
24
    employmentType,
25
    employmentTypes,
26
    location,
27
    experience,
28
    salary,
29
    currencies,
30
    jobCategory,
31
    jobCategories,
32
    jobSkills,
33
    skillsOptions,
34
    jobLanguages,
35
    languageOptions,
36
    jobDegrees,
37
    degreeOptions,
38
  } = props.backendVars;
39
  return (
40
    <main>
41
      <div className="main-section">
42
        <div className="container">
43
          <div className="main-section-data">
2453 stevensc 44
            <div className="main-left-sidebar">
45
            </div>
46
            <div className="main-ws-sec">
47
              <div className="user-tab-sec">
48
                <h3>{jobTitle}</h3>
1 www 49
              </div>
2453 stevensc 50
              <Overview
51
                overview={overview}
52
                companyId={companyId}
53
                addNotification={addNotification}
54
                jobId={jobId}
55
              />
56
              {/* <!--user-profile-ov end--> */}
57
              <LastDateOfApplication
58
                companyId={companyId}
59
                jobId={jobId}
60
                addNotification={addNotification}
61
                lastDateOfApplication={lastDateOfApplication}
62
              />
63
              {/* <!--user-profile-ov end--> */}
64
              <EmploymentType
65
                companyId={companyId}
66
                jobId={jobId}
67
                addNotification={addNotification}
68
                employmentType={employmentType}
69
                employmentTypes={employmentTypes}
70
              />
71
              {/* <!--user-profile-ov end--> */}
72
              <Location
73
                formattedAddress={location}
74
                companyId={companyId}
75
                jobId={jobId}
76
                addNotification={addNotification}
77
              />
78
              {/* <!--user-profile-ov end--> */}
79
              <Experience
80
                companyId={companyId}
81
                jobId={jobId}
82
                addNotification={addNotification}
83
                experience={experience}
84
              />
85
              {/* <!--user-profile-ov end--> */}
86
              <Salary
87
                companyId={companyId}
88
                jobId={jobId}
89
                addNotification={addNotification}
90
                salary={salary}
91
                currencies={currencies}
92
              />
93
              {/* <!--user-profile-ov end--> */}
94
              <Category
95
                companyId={companyId}
96
                jobId={jobId}
97
                addNotification={addNotification}
98
                jobCategory={jobCategory}
99
                jobCategories={jobCategories}
100
              />
101
              {/* <!--user-profile-ov end--> */}
102
              <Skills
103
                companyId={companyId}
104
                jobId={jobId}
105
                addNotification={addNotification}
106
                jobSkills={jobSkills}
107
                skillsOptions={skillsOptions}
108
              />
109
              {/* <!--user-profile-ov end --> */}
110
              <Languages
111
                companyId={companyId}
112
                jobId={jobId}
113
                addNotification={addNotification}
114
                jobLanguages={jobLanguages}
115
                languageOptions={languageOptions}
116
              />
117
              {/* <!--user-profile-ov end --> */}
118
              <Degrees
119
                companyId={companyId}
120
                jobId={jobId}
121
                addNotification={addNotification}
122
                jobDegrees={jobDegrees}
123
                degreeOptions={degreeOptions}
124
              />
1 www 125
            </div>
2453 stevensc 126
            <div className="right-sidebar">
127
            </div>
1 www 128
          </div>
129
        </div>
130
      </div>
131
    </main>
132
  );
133
};
134
 
135
const mapDispatchToProps = {
136
  addNotification: (notification) => addNotification(notification),
137
};
138
 
139
export default connect(null, mapDispatchToProps)(Edit);