Skip to content

Commit

Permalink
Checked prop type for value and onChange in InterviewerList
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Xie committed Jan 27, 2020
1 parent 7a88823 commit bf54a6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@testing-library/react-hooks": "^3.2.1",
"babel-loader": "^8.0.5",
"node-sass": "^4.11.0",
"prop-types": "^15.7.2",
"react-test-renderer": "^16.12.0"
},
"jest": {
Expand Down
6 changes: 6 additions & 0 deletions src/components/InterviewerList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import InterviewerListItem from "components/InterviewerListItem";
import "components/InterviewerList.scss";
import PropTypes from "prop-types";

export default function InterviewerList(props) {
console.log("interviewerlist props and value", props, props.value);
Expand All @@ -19,4 +20,9 @@ export default function InterviewerList(props) {
</ul>
</section>
);
}

InterviewerList.propTypes = {
onChange: PropTypes.func.isRequired,
value: PropTypes.number
}

0 comments on commit bf54a6e

Please sign in to comment.