{"action":"created","comment":{"url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments/216283542","pull_request_review_id":153726768,"id":216283542,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjI4MzU0Mg==","diff_hunk":"@@ -0,0 +1,65 @@\n+import React, { Component } from 'react';\n+import PropTypes from 'prop-types';\n+\n+export const modalOptions = { animation: 'fly up', duration: 1000 };\n+\n+const FormHOC = WrappedComponent => class HOC extends Component {\n+    state = {\n+      user: {\n+        username: '',\n+        email: '',\n+        password: '',\n+      },\n+      errors: {\n+        username: '',\n+        email: '',\n+        password: '',\n+      },\n+      loading: false,\n+      open: false,\n+    };\n+\n+    show = () => this.setState({ open: true });\n+\n+    close = () => this.setState({ open: false });\n+\n+    handleSubmit = (e) => {\n+      e.preventDefault();\n+      const { user } = this.state;\n+      const { handleSubmit } = this.props;\n+      this.setState({ loading: true });\n+      return handleSubmit(user);\n+    };\n+\n+    handleChange = (e) => {\n+      const { user } = this.state;\n+      this.setState({\n+        user: {\n+          ...user,\n+          [e.target.name]: e.target.value,\n+        },\n+      });\n+    };\n+\n+    /**","path":"src/components/hoc/ModalFormHOC.js","position":44,"original_position":44,"commit_id":"6cb6c1f8f5ad59256d1ab62deee729055b13ce35","original_commit_id":"6cb6c1f8f5ad59256d1ab62deee729055b13ce35","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing JSDoc @returns for function            valid-jsdoc","created_at":"2018-09-10T11:15:41Z","updated_at":"2018-09-10T11:15:42Z","html_url":"https://github.com/andela/fargo-ah-client/pull/24#discussion_r216283542","pull_request_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments/216283542"},"html":{"href":"https://github.com/andela/fargo-ah-client/pull/24#discussion_r216283542"},"pull_request":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24","id":214139257,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MTM5MjU3","html_url":"https://github.com/andela/fargo-ah-client/pull/24","diff_url":"https://github.com/andela/fargo-ah-client/pull/24.diff","patch_url":"https://github.com/andela/fargo-ah-client/pull/24.patch","issue_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/24","number":24,"state":"open","locked":false,"title":"#160259705 login/register component","user":{"login":"veeqtor","id":38701151,"node_id":"MDQ6VXNlcjM4NzAxMTUx","avatar_url":"https://avatars1.githubusercontent.com/u/38701151?v=4","gravatar_id":"","url":"https://api.github.com/users/veeqtor","html_url":"https://github.com/veeqtor","followers_url":"https://api.github.com/users/veeqtor/followers","following_url":"https://api.github.com/users/veeqtor/following{/other_user}","gists_url":"https://api.github.com/users/veeqtor/gists{/gist_id}","starred_url":"https://api.github.com/users/veeqtor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veeqtor/subscriptions","organizations_url":"https://api.github.com/users/veeqtor/orgs","repos_url":"https://api.github.com/users/veeqtor/repos","events_url":"https://api.github.com/users/veeqtor/events{/privacy}","received_events_url":"https://api.github.com/users/veeqtor/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\n\r\n- Creates Login and Register modal component\r\n\r\n### Description of Task to be completed?\r\n\r\n- Write test\r\n- Create the login modal component\r\n- Create the register modal component\r\n- Create a style for the forms in the modal component\r\n- Modify the header card component\r\n- Write unit tests\r\n\r\n\r\n### How should this be manually tested?\r\n- `git clone https://github.com/andela/fargo-ah-client.git Authors-Haven-Client`\r\n- `npm install`\r\n- `npm run start` the start script\r\n- Go to '/login' path and click on `login` or `register`\r\n\r\n\r\n### Any background context you want to provide?\r\nN/A\r\n\r\n### What are the relevant pivotal tracker stories?\r\n\r\n- [#160259705](https://www.pivotaltracker.com/story/show/160259705)\r\n\r\n\r\n### Screenshots (if appropriate)\r\n<img width=\"1680\" alt=\"screen shot 2018-09-06 at 6 15 18 am\" src=\"https://user-images.githubusercontent.com/38701151/45136690-3ad7c080-b19d-11e8-8888-adc19f7638e5.png\">\r\n\r\n\r\n<img width=\"1680\" alt=\"screen shot 2018-09-06 at 6 15 30 am\" src=\"https://user-images.githubusercontent.com/38701151/45136719-5cd14300-b19d-11e8-8a4d-c8c358b89dd0.png\">\r\n\r\n\r\n### Questions:\r\n\r\nN/A","created_at":"2018-09-09T10:44:26Z","updated_at":"2018-09-10T11:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"748dcc2aa1a576fb8d7346f1e99d02fcbc957e79","assignee":null,"assignees":[],"requested_reviewers":[{"login":"anneKay","id":24938970,"node_id":"MDQ6VXNlcjI0OTM4OTcw","avatar_url":"https://avatars0.githubusercontent.com/u/24938970?v=4","gravatar_id":"","url":"https://api.github.com/users/anneKay","html_url":"https://github.com/anneKay","followers_url":"https://api.github.com/users/anneKay/followers","following_url":"https://api.github.com/users/anneKay/following{/other_user}","gists_url":"https://api.github.com/users/anneKay/gists{/gist_id}","starred_url":"https://api.github.com/users/anneKay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anneKay/subscriptions","organizations_url":"https://api.github.com/users/anneKay/orgs","repos_url":"https://api.github.com/users/anneKay/repos","events_url":"https://api.github.com/users/anneKay/events{/privacy}","received_events_url":"https://api.github.com/users/anneKay/received_events","type":"User","site_admin":false},{"login":"Oloyedesinmiloluwa","id":32905583,"node_id":"MDQ6VXNlcjMyOTA1NTgz","avatar_url":"https://avatars1.githubusercontent.com/u/32905583?v=4","gravatar_id":"","url":"https://api.github.com/users/Oloyedesinmiloluwa","html_url":"https://github.com/Oloyedesinmiloluwa","followers_url":"https://api.github.com/users/Oloyedesinmiloluwa/followers","following_url":"https://api.github.com/users/Oloyedesinmiloluwa/following{/other_user}","gists_url":"https://api.github.com/users/Oloyedesinmiloluwa/gists{/gist_id}","starred_url":"https://api.github.com/users/Oloyedesinmiloluwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oloyedesinmiloluwa/subscriptions","organizations_url":"https://api.github.com/users/Oloyedesinmiloluwa/orgs","repos_url":"https://api.github.com/users/Oloyedesinmiloluwa/repos","events_url":"https://api.github.com/users/Oloyedesinmiloluwa/events{/privacy}","received_events_url":"https://api.github.com/users/Oloyedesinmiloluwa/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24/commits","review_comments_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24/comments","review_comment_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/24/comments","statuses_url":"https://api.github.com/repos/andela/fargo-ah-client/statuses/6cb6c1f8f5ad59256d1ab62deee729055b13ce35","head":{"label":"andela:ft_160259705_login/register_component","ref":"ft_160259705_login/register_component","sha":"6cb6c1f8f5ad59256d1ab62deee729055b13ce35","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":146319850,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk4NTA=","name":"fargo-ah-client","full_name":"andela/fargo-ah-client","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/fargo-ah-client","description":null,"fork":false,"url":"https://api.github.com/repos/andela/fargo-ah-client","forks_url":"https://api.github.com/repos/andela/fargo-ah-client/forks","keys_url":"https://api.github.com/repos/andela/fargo-ah-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/fargo-ah-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/fargo-ah-client/teams","hooks_url":"https://api.github.com/repos/andela/fargo-ah-client/hooks","issue_events_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/events{/number}","events_url":"https://api.github.com/repos/andela/fargo-ah-client/events","assignees_url":"https://api.github.com/repos/andela/fargo-ah-client/assignees{/user}","branches_url":"https://api.github.com/repos/andela/fargo-ah-client/branches{/branch}","tags_url":"https://api.github.com/repos/andela/fargo-ah-client/tags","blobs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/fargo-ah-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/fargo-ah-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/fargo-ah-client/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/fargo-ah-client/languages","stargazers_url":"https://api.github.com/repos/andela/fargo-ah-client/stargazers","contributors_url":"https://api.github.com/repos/andela/fargo-ah-client/contributors","subscribers_url":"https://api.github.com/repos/andela/fargo-ah-client/subscribers","subscription_url":"https://api.github.com/repos/andela/fargo-ah-client/subscription","commits_url":"https://api.github.com/repos/andela/fargo-ah-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/fargo-ah-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/fargo-ah-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/fargo-ah-client/contents/{+path}","compare_url":"https://api.github.com/repos/andela/fargo-ah-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/fargo-ah-client/merges","archive_url":"https://api.github.com/repos/andela/fargo-ah-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/fargo-ah-client/downloads","issues_url":"https://api.github.com/repos/andela/fargo-ah-client/issues{/number}","pulls_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/fargo-ah-client/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/fargo-ah-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/fargo-ah-client/labels{/name}","releases_url":"https://api.github.com/repos/andela/fargo-ah-client/releases{/id}","deployments_url":"https://api.github.com/repos/andela/fargo-ah-client/deployments","created_at":"2018-08-27T15:49:41Z","updated_at":"2018-09-07T11:46:11Z","pushed_at":"2018-09-10T11:15:12Z","git_url":"git://github.com/andela/fargo-ah-client.git","ssh_url":"git@github.com:andela/fargo-ah-client.git","clone_url":"https://github.com/andela/fargo-ah-client.git","svn_url":"https://github.com/andela/fargo-ah-client","homepage":null,"size":532,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"a464d72605cbedf9e2e6ba569ce8fd5abbd4fcc7","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":146319850,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk4NTA=","name":"fargo-ah-client","full_name":"andela/fargo-ah-client","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/fargo-ah-client","description":null,"fork":false,"url":"https://api.github.com/repos/andela/fargo-ah-client","forks_url":"https://api.github.com/repos/andela/fargo-ah-client/forks","keys_url":"https://api.github.com/repos/andela/fargo-ah-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/fargo-ah-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/fargo-ah-client/teams","hooks_url":"https://api.github.com/repos/andela/fargo-ah-client/hooks","issue_events_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/events{/number}","events_url":"https://api.github.com/repos/andela/fargo-ah-client/events","assignees_url":"https://api.github.com/repos/andela/fargo-ah-client/assignees{/user}","branches_url":"https://api.github.com/repos/andela/fargo-ah-client/branches{/branch}","tags_url":"https://api.github.com/repos/andela/fargo-ah-client/tags","blobs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/fargo-ah-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/fargo-ah-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/fargo-ah-client/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/fargo-ah-client/languages","stargazers_url":"https://api.github.com/repos/andela/fargo-ah-client/stargazers","contributors_url":"https://api.github.com/repos/andela/fargo-ah-client/contributors","subscribers_url":"https://api.github.com/repos/andela/fargo-ah-client/subscribers","subscription_url":"https://api.github.com/repos/andela/fargo-ah-client/subscription","commits_url":"https://api.github.com/repos/andela/fargo-ah-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/fargo-ah-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/fargo-ah-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/fargo-ah-client/contents/{+path}","compare_url":"https://api.github.com/repos/andela/fargo-ah-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/fargo-ah-client/merges","archive_url":"https://api.github.com/repos/andela/fargo-ah-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/fargo-ah-client/downloads","issues_url":"https://api.github.com/repos/andela/fargo-ah-client/issues{/number}","pulls_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/fargo-ah-client/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/fargo-ah-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/fargo-ah-client/labels{/name}","releases_url":"https://api.github.com/repos/andela/fargo-ah-client/releases{/id}","deployments_url":"https://api.github.com/repos/andela/fargo-ah-client/deployments","created_at":"2018-08-27T15:49:41Z","updated_at":"2018-09-07T11:46:11Z","pushed_at":"2018-09-10T11:15:12Z","git_url":"git://github.com/andela/fargo-ah-client.git","ssh_url":"git@github.com:andela/fargo-ah-client.git","clone_url":"https://github.com/andela/fargo-ah-client.git","svn_url":"https://github.com/andela/fargo-ah-client","homepage":null,"size":532,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24"},"html":{"href":"https://github.com/andela/fargo-ah-client/pull/24"},"issue":{"href":"https://api.github.com/repos/andela/fargo-ah-client/issues/24"},"comments":{"href":"https://api.github.com/repos/andela/fargo-ah-client/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/andela/fargo-ah-client/statuses/6cb6c1f8f5ad59256d1ab62deee729055b13ce35"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}