diff --git a/src/components/common/CheckBoxInput.js b/src/components/common/CheckBoxInput.js
new file mode 100644
index 0000000..9d2fad7
--- /dev/null
+++ b/src/components/common/CheckBoxInput.js
@@ -0,0 +1,40 @@
+import React from "react";
+import PropTypes from "prop-types";
+
+function CheckBoxInput(props) {
+ let wrapperClass = "form-group";
+ if (props.error.length > 0) {
+ wrapperClass += "has-error";
+ }
+ return (
+
+
+
+
+
+ {props.error &&
{props.error}
}
+
+ );
+}
+
+CheckBoxInput.propTypes = {
+ id: PropTypes.string.isRequired,
+ name: PropTypes.string.isRequired,
+ label: PropTypes.string.isRequired,
+ onChange: PropTypes.func.isRequired,
+ checked: PropTypes.string,
+ error: PropTypes.string,
+};
+
+CheckBoxInput.defaultProps = {
+ error: "",
+};
+
+export default CheckBoxInput;
diff --git a/src/components/common/Header.js b/src/components/common/Header.js
new file mode 100644
index 0000000..e94b055
--- /dev/null
+++ b/src/components/common/Header.js
@@ -0,0 +1,29 @@
+import React from "react";
+import { NavLink } from "react-router-dom";
+
+function Header() {
+ const activeStyle = { color: "orange" };
+ return (
+
+ );
+}
+
+export default Header;
diff --git a/src/components/common/TableCellCheckbox.js b/src/components/common/TableCellCheckbox.js
new file mode 100644
index 0000000..7248f4a
--- /dev/null
+++ b/src/components/common/TableCellCheckbox.js
@@ -0,0 +1,38 @@
+import React from "react";
+import PropTypes from "prop-types";
+
+function TableCellCheckbox(props) {
+ let wrapperClass = "form-group";
+ if (props.error.length > 0) {
+ wrapperClass += "has-error";
+ }
+ return (
+
+
+
+
+ {props.error && {props.error} }
+ |
+ );
+}
+
+TableCellCheckbox.propTypes = {
+ id: PropTypes.string.isRequired,
+ name: PropTypes.string.isRequired,
+ onChange: PropTypes.func.isRequired,
+ checked: PropTypes.bool,
+ error: PropTypes.string,
+};
+
+TableCellCheckbox.defaultProps = {
+ error: "",
+};
+
+export default TableCellCheckbox;
diff --git a/src/components/common/TextInput.js b/src/components/common/TextInput.js
new file mode 100644
index 0000000..9b1654d
--- /dev/null
+++ b/src/components/common/TextInput.js
@@ -0,0 +1,40 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+
+function TextInput(props) {
+ let wrapperClass = "form-group";
+ if(props.error.length > 0){
+ wrapperClass += "has-error";
+ }
+ return (
+
+
+
+
+
+ { props.error &&
{props.error}
}
+
+ )
+}
+
+TextInput.propTypes = {
+ id: PropTypes.string.isRequired,
+ name: PropTypes.string.isRequired,
+ label: PropTypes.string.isRequired,
+ onChange: PropTypes.func.isRequired,
+ value: PropTypes.string,
+ error: PropTypes.string
+};
+
+TextInput.defaultProps = {
+ error: ""
+};
+
+export default TextInput;
\ No newline at end of file