diff --git a/app/js/components/Admin.js b/app/js/components/Admin.js
index b9e10cf..0900bf1 100644
--- a/app/js/components/Admin.js
+++ b/app/js/components/Admin.js
@@ -1,12 +1,50 @@
/*global web3*/
import React from 'react';
+import {Button, Form} from 'react-bootstrap';
+import ValidatedForm from 'react-validation/build/form';
+import Input from 'react-validation/build/input';
+import {required, isAddress} from '../validators';
class Admin extends React.Component {
+ state = {
+ contributorName: '',
+ contributorAddress: ''
+ };
+
+ onChange = (name, e) => {
+ this.setState({[name]: e.target.value});
+ };
+
+ addContributor = (e) => {
+ e.preventDefault();
+ console.log('Submit', this.state);
+ };
render() {
+ const {contributorAddress, contributorName} = this.state;
+
return (
-
Admin Panel
+ Admin Panel
+ Add a contributor
+ this.addContributor(e)}>
+
+ Contributor name
+ this.onChange('contributorName', e)}
+ className="form-control"
+ validations={[required]}/>
+
+
+
+ Contributor address
+ this.onChange('contributorAddress', e)}
+ className="form-control"
+ validations={[required, isAddress]}/>
+
+
+
);
}
}
diff --git a/app/js/components/Header.js b/app/js/components/Header.js
index ebf61f5..af49a31 100644
--- a/app/js/components/Header.js
+++ b/app/js/components/Header.js
@@ -2,7 +2,7 @@ import React from 'react'
import {Navbar, Nav} from 'react-bootstrap';
const Header = () => (
- Meritocracy
+ Status Meritocracy