Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
233 changes: 0 additions & 233 deletions client/components/ReportCard.jsx

This file was deleted.

7 changes: 5 additions & 2 deletions client/components/ReportCardView.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ReportCard from "./ReportCard.jsx";
import PersonalInfoView from "./personal-info/PersonalInfoView.jsx";
import CertificationView from "./certification/CertificationView.jsx";
import Select from "../elements/Select.jsx";
import axios from "axios";
Expand Down Expand Up @@ -156,7 +156,10 @@ class ReportCardView extends React.Component {
labelClass="rc-label"
selectClass="rc-select"
/> */}
<ReportCard personInfo={personInfo[currentPerson]} />
<PersonalInfoView
personInfo={personInfo[currentPerson]}
updatePerson={this.updatePerson}
/>
<CertificationView
certifications={certifications[currentId]}
personId={currentId}
Expand Down
2 changes: 1 addition & 1 deletion client/components/certification/AddCertification.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DateBox from "../DateBox.jsx";
import DateBox from "../../elements/DateBox.jsx";
import Select from "../../elements/Select.jsx";
import axios from "axios";

Expand Down
8 changes: 1 addition & 7 deletions client/components/certification/EditingCertification.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DateBox from "../DateBox.jsx";
import DateBox from "../../elements/DateBox.jsx";
import Select from "../../elements/Select.jsx";

const EditingCertification = props => {
Expand All @@ -24,12 +24,6 @@ const EditingCertification = props => {
return (
<React.Fragment>
<div className="cell">
{/* <Select
name="certType"
options={Object.keys(certificationTypes)}
handle={handleChange}
selected={data.name}
/> */}
<p>{data.name}</p>
</div>
<div className="cell">
Expand Down
39 changes: 39 additions & 0 deletions client/components/personal-info/DefaultPersonalInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from "react";

const DefaultPersonalInfo = props => {
const { personInfo } = props;

return (
<React.Fragment>
<div className="cell">
<p>{personInfo.first_name}</p>
</div>
<div className="cell">
<p>{personInfo.last_name}</p>
</div>
<div className="cell">
<p>{personInfo.email_address}</p>
</div>
<div className="cell">
<p>{personInfo.phone_number}</p>
</div>
<div className="cell">
<p>{personInfo.class}</p>
</div>
<div className="cell">
<p>{personInfo.start_date}</p>
</div>
<div className="cell">
<button
name="edit-btn"
className="edit-certification"
onClick={props.handleClick}
>
Edit
</button>
</div>
</React.Fragment>
);
};

export default DefaultPersonalInfo;
Loading