{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/comments/172279420","pull_request_review_id":101268313,"id":172279420,"diff_hunk":"@@ -0,0 +1,99 @@\n+import React from \"react\";\n+import {connect} from \"react-redux\";\n+import {bindActionCreators} from \"redux\";\n+import * as actions from \"../actions\";\n+import {Button} from \"react-bootstrap\";\n+\n+class EditNotePage extends React.Component {\n+\n+  state = {\n+    note: {\n+      title: '',\n+      message: ''\n+      \n+    }\n+  };\n+\n+  componentDidMount() {\n+    const noteId = this.props.match.params.id;\n+\n+    const note = this.props.notes.filter(e => e.id === Number(noteId))[0];\n+    this.setState({note});\n+  }\n+\n+  setTitle = (event) => {\n+    const note = this.state.note;\n+    note.title = event.target.value;\n+    this.setState({note});\n+  };\n+\n+  setMessage = (event) => {\n+    const note = this.state.note;\n+    note.message = event.target.value;\n+    this.setState({note});\n+  };\n+\n+  updateNote = event => {\n+    this.props.actions.updateNoteInStore(this.state.note);\n+    event.preventDefault(); \n+    this.props.history.push(`/view-note/${this.state.note.id}`);\n+  };\n+\n+  render() {\n+    const {\n+      note\n+    } = this.state;\n+\n+    return (\n+      <form onSubmit={this.updateNote}>\n+        <h4>Edit Note</h4>\n+        <div className=\"row\" style={{marginTop: \"40px\"}}>\n+          <div className=\"col-md-5\">\n+            <input\n+              type=\"text\"\n+              value={note.title}\n+              style={{width: \"100%\"}}\n+              placeholder=\"Note Title\"\n+              onChange={this.setTitle}\n+              required\n+            />\n+          </div>\n+        </div>\n+        <div className=\"row\">\n+          <div className=\"col-md-5\" style={{marginTop: \"15px\"}}>\n+            <textarea\n+              value={note.message}\n+              style={{width: \"100%\"}}\n+              rows={5}\n+              placeholder=\"Note Message\"\n+              required\n+              onChange={this.setMessage}\n+            />\n+          </div>\n+        </div>\n+        <div className=\"row\">\n+          <div className=\"col-md-3\" style={{marginTop: \"15px\"}}>\n+            <Button type=\"submit\">\n+              Update\n+            </Button>\n+          </div>\n+        </div>\n+      </form>\n+    );\n+  }\n+}\n+\n+\n+function mapStateToProps(state) {\n+  return {\n+    notes: state.notes\n+  };\n+}\n+\n+function mapDispatchToProps(dispatch) {\n+  return {\n+    actions: bindActionCreators(actions, dispatch)","path":"src/components/EditNotePage.js","position":95,"original_position":95,"commit_id":"97b417cfb60b8f66a2864f2cbdcaec1b431526b5","original_commit_id":"97b417cfb60b8f66a2864f2cbdcaec1b431526b5","user":{"login":"dys2","id":24781453,"avatar_url":"https://avatars2.githubusercontent.com/u/24781453?v=4","gravatar_id":"","url":"https://api.github.com/users/dys2","html_url":"https://github.com/dys2","followers_url":"https://api.github.com/users/dys2/followers","following_url":"https://api.github.com/users/dys2/following{/other_user}","gists_url":"https://api.github.com/users/dys2/gists{/gist_id}","starred_url":"https://api.github.com/users/dys2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dys2/subscriptions","organizations_url":"https://api.github.com/users/dys2/orgs","repos_url":"https://api.github.com/users/dys2/repos","events_url":"https://api.github.com/users/dys2/events{/privacy}","received_events_url":"https://api.github.com/users/dys2/received_events","type":"User","site_admin":false},"body":"interesting how you are importing all of the actions.  However i would avoid importing any actions you don't actually need for the component.","created_at":"2018-03-05T18:15:55Z","updated_at":"2018-03-05T18:25:51Z","html_url":"https://github.com/LambdaSchool/front-end-project-week/pull/48#discussion_r172279420","pull_request_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/comments/172279420"},"html":{"href":"https://github.com/LambdaSchool/front-end-project-week/pull/48#discussion_r172279420"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48","id":172101443,"html_url":"https://github.com/LambdaSchool/front-end-project-week/pull/48","diff_url":"https://github.com/LambdaSchool/front-end-project-week/pull/48.diff","patch_url":"https://github.com/LambdaSchool/front-end-project-week/pull/48.patch","issue_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues/48","number":48,"state":"open","locked":false,"title":"Anthony Catalfo","user":{"login":"AnthonyCatalfo","id":32794730,"avatar_url":"https://avatars1.githubusercontent.com/u/32794730?v=4","gravatar_id":"","url":"https://api.github.com/users/AnthonyCatalfo","html_url":"https://github.com/AnthonyCatalfo","followers_url":"https://api.github.com/users/AnthonyCatalfo/followers","following_url":"https://api.github.com/users/AnthonyCatalfo/following{/other_user}","gists_url":"https://api.github.com/users/AnthonyCatalfo/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonyCatalfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonyCatalfo/subscriptions","organizations_url":"https://api.github.com/users/AnthonyCatalfo/orgs","repos_url":"https://api.github.com/users/AnthonyCatalfo/repos","events_url":"https://api.github.com/users/AnthonyCatalfo/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonyCatalfo/received_events","type":"User","site_admin":false},"body":"## MVP Features:\r\n* [x] Display a list of notes\r\n* [x] Create a note with a title and content\r\n* [x] View an existing note\r\n* [x] Edit an existing note\r\n* [x] Delete an existing note\r\n","created_at":"2018-02-28T23:15:31Z","updated_at":"2018-03-05T18:25:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5b24c3ef12e0f1d3c9eeb4d8dfc3f3fdb464bdb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues/48/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/statuses/97b417cfb60b8f66a2864f2cbdcaec1b431526b5","head":{"label":"AnthonyCatalfo:master","ref":"master","sha":"97b417cfb60b8f66a2864f2cbdcaec1b431526b5","user":{"login":"AnthonyCatalfo","id":32794730,"avatar_url":"https://avatars1.githubusercontent.com/u/32794730?v=4","gravatar_id":"","url":"https://api.github.com/users/AnthonyCatalfo","html_url":"https://github.com/AnthonyCatalfo","followers_url":"https://api.github.com/users/AnthonyCatalfo/followers","following_url":"https://api.github.com/users/AnthonyCatalfo/following{/other_user}","gists_url":"https://api.github.com/users/AnthonyCatalfo/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonyCatalfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonyCatalfo/subscriptions","organizations_url":"https://api.github.com/users/AnthonyCatalfo/orgs","repos_url":"https://api.github.com/users/AnthonyCatalfo/repos","events_url":"https://api.github.com/users/AnthonyCatalfo/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonyCatalfo/received_events","type":"User","site_admin":false},"repo":{"id":123051173,"name":"front-end-project-week","full_name":"AnthonyCatalfo/front-end-project-week","owner":{"login":"AnthonyCatalfo","id":32794730,"avatar_url":"https://avatars1.githubusercontent.com/u/32794730?v=4","gravatar_id":"","url":"https://api.github.com/users/AnthonyCatalfo","html_url":"https://github.com/AnthonyCatalfo","followers_url":"https://api.github.com/users/AnthonyCatalfo/followers","following_url":"https://api.github.com/users/AnthonyCatalfo/following{/other_user}","gists_url":"https://api.github.com/users/AnthonyCatalfo/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonyCatalfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonyCatalfo/subscriptions","organizations_url":"https://api.github.com/users/AnthonyCatalfo/orgs","repos_url":"https://api.github.com/users/AnthonyCatalfo/repos","events_url":"https://api.github.com/users/AnthonyCatalfo/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonyCatalfo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AnthonyCatalfo/front-end-project-week","description":"This contains the assets and instruction for Front End Project Week","fork":true,"url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week","forks_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/forks","keys_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/teams","hooks_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/hooks","issue_events_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/issues/events{/number}","events_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/events","assignees_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/assignees{/user}","branches_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/branches{/branch}","tags_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/tags","blobs_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/statuses/{sha}","languages_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/languages","stargazers_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/stargazers","contributors_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/contributors","subscribers_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/subscribers","subscription_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/subscription","commits_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/issues/comments{/number}","contents_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/contents/{+path}","compare_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/merges","archive_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/downloads","issues_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/issues{/number}","pulls_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/pulls{/number}","milestones_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/milestones{/number}","notifications_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/labels{/name}","releases_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/releases{/id}","deployments_url":"https://api.github.com/repos/AnthonyCatalfo/front-end-project-week/deployments","created_at":"2018-02-27T00:51:57Z","updated_at":"2018-02-28T16:55:09Z","pushed_at":"2018-03-02T19:13:07Z","git_url":"git://github.com/AnthonyCatalfo/front-end-project-week.git","ssh_url":"git@github.com:AnthonyCatalfo/front-end-project-week.git","clone_url":"https://github.com/AnthonyCatalfo/front-end-project-week.git","svn_url":"https://github.com/AnthonyCatalfo/front-end-project-week","homepage":null,"size":1442,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"3b8b8c59fa50d65fa8d5301c938dbfd61330880e","user":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":122791096,"name":"front-end-project-week","full_name":"LambdaSchool/front-end-project-week","owner":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LambdaSchool/front-end-project-week","description":"This contains the assets and instruction for Front End Project Week","fork":false,"url":"https://api.github.com/repos/LambdaSchool/front-end-project-week","forks_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/forks","keys_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/events","assignees_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/merges","archive_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/front-end-project-week/deployments","created_at":"2018-02-25T00:04:02Z","updated_at":"2018-02-25T00:04:02Z","pushed_at":"2018-03-05T17:53:21Z","git_url":"git://github.com/LambdaSchool/front-end-project-week.git","ssh_url":"git@github.com:LambdaSchool/front-end-project-week.git","clone_url":"https://github.com/LambdaSchool/front-end-project-week.git","svn_url":"https://github.com/LambdaSchool/front-end-project-week","homepage":null,"size":916,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":47,"license":null,"forks":50,"open_issues":47,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48"},"html":{"href":"https://github.com/LambdaSchool/front-end-project-week/pull/48"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues/48"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/front-end-project-week/statuses/97b417cfb60b8f66a2864f2cbdcaec1b431526b5"}},"author_association":"NONE"}}
{"actor":{"display_login":"dys2"}}