{"action":"created","comment":{"url":"https://api.github.com/repos/esceenze/ratee/pulls/comments/58988306","id":58988306,"diff_hunk":"@@ -7,27 +7,34 @@ import styles from './Input.sass';\n \n class Input extends Component {\n   static propTypes = {\n-    value: PropTypes.string.isRequired,\n+    name: PropTypes.string.isRequired,\n     onChange: PropTypes.func.isRequired,\n     type: PropTypes.string.isRequired,\n-    placeholder: PropTypes.text,\n+    placeholder: PropTypes.any,\n+    value: PropTypes.any,\n     lg: PropTypes.bool,\n     sm: PropTypes.bool,\n     inline: PropTypes.bool,\n   }\n \n-  state = {\n+  static defaultProps = {\n     value: '',\n+    placeholder: '',\n+    name: '',\n+  }\n+\n+  state = {\n+    value: this.props.value,\n   }\n \n-  onChange = (valueToUpdate, newValue) => {\n+  onChange = (newValue) => {\n     const { onChange } = this.props;\n-    onChange(valueToUpdate, newValue);\n+    onChange(this.props.name, newValue);","path":"lib/ui/Input/Input.jsx","position":31,"original_position":31,"commit_id":"8f606d301390dcddee0a38178c9c23c40596be93","original_commit_id":"8f606d301390dcddee0a38178c9c23c40596be93","user":{"login":"gyzerok","id":1706020,"avatar_url":"https://avatars.githubusercontent.com/u/1706020?v=3","gravatar_id":"","url":"https://api.github.com/users/gyzerok","html_url":"https://github.com/gyzerok","followers_url":"https://api.github.com/users/gyzerok/followers","following_url":"https://api.github.com/users/gyzerok/following{/other_user}","gists_url":"https://api.github.com/users/gyzerok/gists{/gist_id}","starred_url":"https://api.github.com/users/gyzerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyzerok/subscriptions","organizations_url":"https://api.github.com/users/gyzerok/orgs","repos_url":"https://api.github.com/users/gyzerok/repos","events_url":"https://api.github.com/users/gyzerok/events{/privacy}","received_events_url":"https://api.github.com/users/gyzerok/received_events","type":"User","site_admin":false},"body":"Можно было бы `const { name, onChange } = this.props;`","created_at":"2016-04-08T07:21:14Z","updated_at":"2016-04-08T07:21:14Z","html_url":"https://github.com/esceenze/ratee/pull/24#discussion_r58988306","pull_request_url":"https://api.github.com/repos/esceenze/ratee/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/esceenze/ratee/pulls/comments/58988306"},"html":{"href":"https://github.com/esceenze/ratee/pull/24#discussion_r58988306"},"pull_request":{"href":"https://api.github.com/repos/esceenze/ratee/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/esceenze/ratee/pulls/24","id":65301236,"html_url":"https://github.com/esceenze/ratee/pull/24","diff_url":"https://github.com/esceenze/ratee/pull/24.diff","patch_url":"https://github.com/esceenze/ratee/pull/24.patch","issue_url":"https://api.github.com/repos/esceenze/ratee/issues/24","number":24,"state":"open","locked":false,"title":"fix #19: styles moved to lib and login form","user":{"login":"esceenze","id":13927532,"avatar_url":"https://avatars.githubusercontent.com/u/13927532?v=3","gravatar_id":"","url":"https://api.github.com/users/esceenze","html_url":"https://github.com/esceenze","followers_url":"https://api.github.com/users/esceenze/followers","following_url":"https://api.github.com/users/esceenze/following{/other_user}","gists_url":"https://api.github.com/users/esceenze/gists{/gist_id}","starred_url":"https://api.github.com/users/esceenze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esceenze/subscriptions","organizations_url":"https://api.github.com/users/esceenze/orgs","repos_url":"https://api.github.com/users/esceenze/repos","events_url":"https://api.github.com/users/esceenze/events{/privacy}","received_events_url":"https://api.github.com/users/esceenze/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-05T13:08:32Z","updated_at":"2016-04-08T07:21:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c3fd14462bedc04e12fcc69d26f061151074e6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/esceenze/ratee/pulls/24/commits","review_comments_url":"https://api.github.com/repos/esceenze/ratee/pulls/24/comments","review_comment_url":"https://api.github.com/repos/esceenze/ratee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esceenze/ratee/issues/24/comments","statuses_url":"https://api.github.com/repos/esceenze/ratee/statuses/8f606d301390dcddee0a38178c9c23c40596be93","head":{"label":"esceenze:19-admin-view-stat","ref":"19-admin-view-stat","sha":"8f606d301390dcddee0a38178c9c23c40596be93","user":{"login":"esceenze","id":13927532,"avatar_url":"https://avatars.githubusercontent.com/u/13927532?v=3","gravatar_id":"","url":"https://api.github.com/users/esceenze","html_url":"https://github.com/esceenze","followers_url":"https://api.github.com/users/esceenze/followers","following_url":"https://api.github.com/users/esceenze/following{/other_user}","gists_url":"https://api.github.com/users/esceenze/gists{/gist_id}","starred_url":"https://api.github.com/users/esceenze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esceenze/subscriptions","organizations_url":"https://api.github.com/users/esceenze/orgs","repos_url":"https://api.github.com/users/esceenze/repos","events_url":"https://api.github.com/users/esceenze/events{/privacy}","received_events_url":"https://api.github.com/users/esceenze/received_events","type":"User","site_admin":false},"repo":{"id":54818531,"name":"ratee","full_name":"esceenze/ratee","owner":{"login":"esceenze","id":13927532,"avatar_url":"https://avatars.githubusercontent.com/u/13927532?v=3","gravatar_id":"","url":"https://api.github.com/users/esceenze","html_url":"https://github.com/esceenze","followers_url":"https://api.github.com/users/esceenze/followers","following_url":"https://api.github.com/users/esceenze/following{/other_user}","gists_url":"https://api.github.com/users/esceenze/gists{/gist_id}","starred_url":"https://api.github.com/users/esceenze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esceenze/subscriptions","organizations_url":"https://api.github.com/users/esceenze/orgs","repos_url":"https://api.github.com/users/esceenze/repos","events_url":"https://api.github.com/users/esceenze/events{/privacy}","received_events_url":"https://api.github.com/users/esceenze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esceenze/ratee","description":"Gather feedback from your customers","fork":false,"url":"https://api.github.com/repos/esceenze/ratee","forks_url":"https://api.github.com/repos/esceenze/ratee/forks","keys_url":"https://api.github.com/repos/esceenze/ratee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esceenze/ratee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esceenze/ratee/teams","hooks_url":"https://api.github.com/repos/esceenze/ratee/hooks","issue_events_url":"https://api.github.com/repos/esceenze/ratee/issues/events{/number}","events_url":"https://api.github.com/repos/esceenze/ratee/events","assignees_url":"https://api.github.com/repos/esceenze/ratee/assignees{/user}","branches_url":"https://api.github.com/repos/esceenze/ratee/branches{/branch}","tags_url":"https://api.github.com/repos/esceenze/ratee/tags","blobs_url":"https://api.github.com/repos/esceenze/ratee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esceenze/ratee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esceenze/ratee/git/refs{/sha}","trees_url":"https://api.github.com/repos/esceenze/ratee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esceenze/ratee/statuses/{sha}","languages_url":"https://api.github.com/repos/esceenze/ratee/languages","stargazers_url":"https://api.github.com/repos/esceenze/ratee/stargazers","contributors_url":"https://api.github.com/repos/esceenze/ratee/contributors","subscribers_url":"https://api.github.com/repos/esceenze/ratee/subscribers","subscription_url":"https://api.github.com/repos/esceenze/ratee/subscription","commits_url":"https://api.github.com/repos/esceenze/ratee/commits{/sha}","git_commits_url":"https://api.github.com/repos/esceenze/ratee/git/commits{/sha}","comments_url":"https://api.github.com/repos/esceenze/ratee/comments{/number}","issue_comment_url":"https://api.github.com/repos/esceenze/ratee/issues/comments{/number}","contents_url":"https://api.github.com/repos/esceenze/ratee/contents/{+path}","compare_url":"https://api.github.com/repos/esceenze/ratee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esceenze/ratee/merges","archive_url":"https://api.github.com/repos/esceenze/ratee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esceenze/ratee/downloads","issues_url":"https://api.github.com/repos/esceenze/ratee/issues{/number}","pulls_url":"https://api.github.com/repos/esceenze/ratee/pulls{/number}","milestones_url":"https://api.github.com/repos/esceenze/ratee/milestones{/number}","notifications_url":"https://api.github.com/repos/esceenze/ratee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esceenze/ratee/labels{/name}","releases_url":"https://api.github.com/repos/esceenze/ratee/releases{/id}","deployments_url":"https://api.github.com/repos/esceenze/ratee/deployments","created_at":"2016-03-27T08:02:02Z","updated_at":"2016-03-29T13:01:39Z","pushed_at":"2016-04-07T17:20:04Z","git_url":"git://github.com/esceenze/ratee.git","ssh_url":"git@github.com:esceenze/ratee.git","clone_url":"https://github.com/esceenze/ratee.git","svn_url":"https://github.com/esceenze/ratee","homepage":null,"size":607,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"esceenze:master","ref":"master","sha":"c0492976789c7782e99113613acf9874920ffc5b","user":{"login":"esceenze","id":13927532,"avatar_url":"https://avatars.githubusercontent.com/u/13927532?v=3","gravatar_id":"","url":"https://api.github.com/users/esceenze","html_url":"https://github.com/esceenze","followers_url":"https://api.github.com/users/esceenze/followers","following_url":"https://api.github.com/users/esceenze/following{/other_user}","gists_url":"https://api.github.com/users/esceenze/gists{/gist_id}","starred_url":"https://api.github.com/users/esceenze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esceenze/subscriptions","organizations_url":"https://api.github.com/users/esceenze/orgs","repos_url":"https://api.github.com/users/esceenze/repos","events_url":"https://api.github.com/users/esceenze/events{/privacy}","received_events_url":"https://api.github.com/users/esceenze/received_events","type":"User","site_admin":false},"repo":{"id":54818531,"name":"ratee","full_name":"esceenze/ratee","owner":{"login":"esceenze","id":13927532,"avatar_url":"https://avatars.githubusercontent.com/u/13927532?v=3","gravatar_id":"","url":"https://api.github.com/users/esceenze","html_url":"https://github.com/esceenze","followers_url":"https://api.github.com/users/esceenze/followers","following_url":"https://api.github.com/users/esceenze/following{/other_user}","gists_url":"https://api.github.com/users/esceenze/gists{/gist_id}","starred_url":"https://api.github.com/users/esceenze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esceenze/subscriptions","organizations_url":"https://api.github.com/users/esceenze/orgs","repos_url":"https://api.github.com/users/esceenze/repos","events_url":"https://api.github.com/users/esceenze/events{/privacy}","received_events_url":"https://api.github.com/users/esceenze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esceenze/ratee","description":"Gather feedback from your customers","fork":false,"url":"https://api.github.com/repos/esceenze/ratee","forks_url":"https://api.github.com/repos/esceenze/ratee/forks","keys_url":"https://api.github.com/repos/esceenze/ratee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esceenze/ratee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esceenze/ratee/teams","hooks_url":"https://api.github.com/repos/esceenze/ratee/hooks","issue_events_url":"https://api.github.com/repos/esceenze/ratee/issues/events{/number}","events_url":"https://api.github.com/repos/esceenze/ratee/events","assignees_url":"https://api.github.com/repos/esceenze/ratee/assignees{/user}","branches_url":"https://api.github.com/repos/esceenze/ratee/branches{/branch}","tags_url":"https://api.github.com/repos/esceenze/ratee/tags","blobs_url":"https://api.github.com/repos/esceenze/ratee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esceenze/ratee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esceenze/ratee/git/refs{/sha}","trees_url":"https://api.github.com/repos/esceenze/ratee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esceenze/ratee/statuses/{sha}","languages_url":"https://api.github.com/repos/esceenze/ratee/languages","stargazers_url":"https://api.github.com/repos/esceenze/ratee/stargazers","contributors_url":"https://api.github.com/repos/esceenze/ratee/contributors","subscribers_url":"https://api.github.com/repos/esceenze/ratee/subscribers","subscription_url":"https://api.github.com/repos/esceenze/ratee/subscription","commits_url":"https://api.github.com/repos/esceenze/ratee/commits{/sha}","git_commits_url":"https://api.github.com/repos/esceenze/ratee/git/commits{/sha}","comments_url":"https://api.github.com/repos/esceenze/ratee/comments{/number}","issue_comment_url":"https://api.github.com/repos/esceenze/ratee/issues/comments{/number}","contents_url":"https://api.github.com/repos/esceenze/ratee/contents/{+path}","compare_url":"https://api.github.com/repos/esceenze/ratee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esceenze/ratee/merges","archive_url":"https://api.github.com/repos/esceenze/ratee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esceenze/ratee/downloads","issues_url":"https://api.github.com/repos/esceenze/ratee/issues{/number}","pulls_url":"https://api.github.com/repos/esceenze/ratee/pulls{/number}","milestones_url":"https://api.github.com/repos/esceenze/ratee/milestones{/number}","notifications_url":"https://api.github.com/repos/esceenze/ratee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esceenze/ratee/labels{/name}","releases_url":"https://api.github.com/repos/esceenze/ratee/releases{/id}","deployments_url":"https://api.github.com/repos/esceenze/ratee/deployments","created_at":"2016-03-27T08:02:02Z","updated_at":"2016-03-29T13:01:39Z","pushed_at":"2016-04-07T17:20:04Z","git_url":"git://github.com/esceenze/ratee.git","ssh_url":"git@github.com:esceenze/ratee.git","clone_url":"https://github.com/esceenze/ratee.git","svn_url":"https://github.com/esceenze/ratee","homepage":null,"size":607,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esceenze/ratee/pulls/24"},"html":{"href":"https://github.com/esceenze/ratee/pull/24"},"issue":{"href":"https://api.github.com/repos/esceenze/ratee/issues/24"},"comments":{"href":"https://api.github.com/repos/esceenze/ratee/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/esceenze/ratee/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/esceenze/ratee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esceenze/ratee/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/esceenze/ratee/statuses/8f606d301390dcddee0a38178c9c23c40596be93"}}}}