{"action":"created","comment":{"url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/comments/38261521","id":38261521,"diff_hunk":"@@ -10,6 +11,53 @@ import PanelGroup from 'react-bootstrap/lib/PanelGroup';\n import Row from 'react-bootstrap/lib/Row';\n import Table from 'react-bootstrap/lib/Table';\n \n+class AmountField extends React.Component {\n+  constructor(props) {\n+    super(props);\n+\n+    this.state = {\n+      value: this.props.value != null ? parseInt(this.props.value) : 0\n+    }\n+\n+    this.increase = this._increase.bind(this);\n+    this.decrease = this._decrease.bind(this);\n+    this.update = this._update.bind(this);\n+  }\n+\n+  _increase() {\n+    this.setState({value: this.state.value + 1});\n+  }\n+\n+  _decrease() {\n+    this.setState({value: this.state.value > 0 ? this.state.value - 1 : 0});","path":"src/js/components/order.js","position":30,"original_position":30,"commit_id":"40e19450650c8226045bded4b424be23f211a555","original_commit_id":"40e19450650c8226045bded4b424be23f211a555","user":{"login":"rickychien","id":958165,"avatar_url":"https://avatars.githubusercontent.com/u/958165?v=3","gravatar_id":"","url":"https://api.github.com/users/rickychien","html_url":"https://github.com/rickychien","followers_url":"https://api.github.com/users/rickychien/followers","following_url":"https://api.github.com/users/rickychien/following{/other_user}","gists_url":"https://api.github.com/users/rickychien/gists{/gist_id}","starred_url":"https://api.github.com/users/rickychien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickychien/subscriptions","organizations_url":"https://api.github.com/users/rickychien/orgs","repos_url":"https://api.github.com/users/rickychien/repos","events_url":"https://api.github.com/users/rickychien/events{/privacy}","received_events_url":"https://api.github.com/users/rickychien/received_events","type":"User","site_admin":false},"body":"nit: coding style as above","created_at":"2015-08-29T12:20:33Z","updated_at":"2015-08-29T12:20:33Z","html_url":"https://github.com/ShiningGeneration/majaja/pull/24#discussion_r38261521","pull_request_url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/comments/38261521"},"html":{"href":"https://github.com/ShiningGeneration/majaja/pull/24#discussion_r38261521"},"pull_request":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24","id":43692856,"html_url":"https://github.com/ShiningGeneration/majaja/pull/24","diff_url":"https://github.com/ShiningGeneration/majaja/pull/24.diff","patch_url":"https://github.com/ShiningGeneration/majaja/pull/24.patch","issue_url":"https://api.github.com/repos/ShiningGeneration/majaja/issues/24","number":24,"state":"open","locked":false,"title":"update order page","user":{"login":"KuoE0","id":892413,"avatar_url":"https://avatars.githubusercontent.com/u/892413?v=3","gravatar_id":"","url":"https://api.github.com/users/KuoE0","html_url":"https://github.com/KuoE0","followers_url":"https://api.github.com/users/KuoE0/followers","following_url":"https://api.github.com/users/KuoE0/following{/other_user}","gists_url":"https://api.github.com/users/KuoE0/gists{/gist_id}","starred_url":"https://api.github.com/users/KuoE0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuoE0/subscriptions","organizations_url":"https://api.github.com/users/KuoE0/orgs","repos_url":"https://api.github.com/users/KuoE0/repos","events_url":"https://api.github.com/users/KuoE0/events{/privacy}","received_events_url":"https://api.github.com/users/KuoE0/received_events","type":"User","site_admin":false},"body":"1. add option field\r\n2. make amount button work","created_at":"2015-08-29T10:52:41Z","updated_at":"2015-08-29T12:20:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8a33894200916c9c380b6b2095af72801f15744","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24/commits","review_comments_url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24/comments","review_comment_url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ShiningGeneration/majaja/issues/24/comments","statuses_url":"https://api.github.com/repos/ShiningGeneration/majaja/statuses/40e19450650c8226045bded4b424be23f211a555","head":{"label":"KuoE0:feature/order-page","ref":"feature/order-page","sha":"40e19450650c8226045bded4b424be23f211a555","user":{"login":"KuoE0","id":892413,"avatar_url":"https://avatars.githubusercontent.com/u/892413?v=3","gravatar_id":"","url":"https://api.github.com/users/KuoE0","html_url":"https://github.com/KuoE0","followers_url":"https://api.github.com/users/KuoE0/followers","following_url":"https://api.github.com/users/KuoE0/following{/other_user}","gists_url":"https://api.github.com/users/KuoE0/gists{/gist_id}","starred_url":"https://api.github.com/users/KuoE0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuoE0/subscriptions","organizations_url":"https://api.github.com/users/KuoE0/orgs","repos_url":"https://api.github.com/users/KuoE0/repos","events_url":"https://api.github.com/users/KuoE0/events{/privacy}","received_events_url":"https://api.github.com/users/KuoE0/received_events","type":"User","site_admin":false},"repo":{"id":40970425,"name":"majaja","full_name":"KuoE0/majaja","owner":{"login":"KuoE0","id":892413,"avatar_url":"https://avatars.githubusercontent.com/u/892413?v=3","gravatar_id":"","url":"https://api.github.com/users/KuoE0","html_url":"https://github.com/KuoE0","followers_url":"https://api.github.com/users/KuoE0/followers","following_url":"https://api.github.com/users/KuoE0/following{/other_user}","gists_url":"https://api.github.com/users/KuoE0/gists{/gist_id}","starred_url":"https://api.github.com/users/KuoE0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuoE0/subscriptions","organizations_url":"https://api.github.com/users/KuoE0/orgs","repos_url":"https://api.github.com/users/KuoE0/repos","events_url":"https://api.github.com/users/KuoE0/events{/privacy}","received_events_url":"https://api.github.com/users/KuoE0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KuoE0/majaja","description":"Dinbendon","fork":true,"url":"https://api.github.com/repos/KuoE0/majaja","forks_url":"https://api.github.com/repos/KuoE0/majaja/forks","keys_url":"https://api.github.com/repos/KuoE0/majaja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KuoE0/majaja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KuoE0/majaja/teams","hooks_url":"https://api.github.com/repos/KuoE0/majaja/hooks","issue_events_url":"https://api.github.com/repos/KuoE0/majaja/issues/events{/number}","events_url":"https://api.github.com/repos/KuoE0/majaja/events","assignees_url":"https://api.github.com/repos/KuoE0/majaja/assignees{/user}","branches_url":"https://api.github.com/repos/KuoE0/majaja/branches{/branch}","tags_url":"https://api.github.com/repos/KuoE0/majaja/tags","blobs_url":"https://api.github.com/repos/KuoE0/majaja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KuoE0/majaja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KuoE0/majaja/git/refs{/sha}","trees_url":"https://api.github.com/repos/KuoE0/majaja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KuoE0/majaja/statuses/{sha}","languages_url":"https://api.github.com/repos/KuoE0/majaja/languages","stargazers_url":"https://api.github.com/repos/KuoE0/majaja/stargazers","contributors_url":"https://api.github.com/repos/KuoE0/majaja/contributors","subscribers_url":"https://api.github.com/repos/KuoE0/majaja/subscribers","subscription_url":"https://api.github.com/repos/KuoE0/majaja/subscription","commits_url":"https://api.github.com/repos/KuoE0/majaja/commits{/sha}","git_commits_url":"https://api.github.com/repos/KuoE0/majaja/git/commits{/sha}","comments_url":"https://api.github.com/repos/KuoE0/majaja/comments{/number}","issue_comment_url":"https://api.github.com/repos/KuoE0/majaja/issues/comments{/number}","contents_url":"https://api.github.com/repos/KuoE0/majaja/contents/{+path}","compare_url":"https://api.github.com/repos/KuoE0/majaja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KuoE0/majaja/merges","archive_url":"https://api.github.com/repos/KuoE0/majaja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KuoE0/majaja/downloads","issues_url":"https://api.github.com/repos/KuoE0/majaja/issues{/number}","pulls_url":"https://api.github.com/repos/KuoE0/majaja/pulls{/number}","milestones_url":"https://api.github.com/repos/KuoE0/majaja/milestones{/number}","notifications_url":"https://api.github.com/repos/KuoE0/majaja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KuoE0/majaja/labels{/name}","releases_url":"https://api.github.com/repos/KuoE0/majaja/releases{/id}","created_at":"2015-08-18T12:23:49Z","updated_at":"2015-08-18T12:23:51Z","pushed_at":"2015-08-29T10:51:26Z","git_url":"git://github.com/KuoE0/majaja.git","ssh_url":"git@github.com:KuoE0/majaja.git","clone_url":"https://github.com/KuoE0/majaja.git","svn_url":"https://github.com/KuoE0/majaja","homepage":"http://shininggeneration.github.io/majaja/","size":7845,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ShiningGeneration:master","ref":"master","sha":"ee3e8dd84bbe0fa0a6b5cd2d22f42f1235baef57","user":{"login":"ShiningGeneration","id":13681218,"avatar_url":"https://avatars.githubusercontent.com/u/13681218?v=3","gravatar_id":"","url":"https://api.github.com/users/ShiningGeneration","html_url":"https://github.com/ShiningGeneration","followers_url":"https://api.github.com/users/ShiningGeneration/followers","following_url":"https://api.github.com/users/ShiningGeneration/following{/other_user}","gists_url":"https://api.github.com/users/ShiningGeneration/gists{/gist_id}","starred_url":"https://api.github.com/users/ShiningGeneration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShiningGeneration/subscriptions","organizations_url":"https://api.github.com/users/ShiningGeneration/orgs","repos_url":"https://api.github.com/users/ShiningGeneration/repos","events_url":"https://api.github.com/users/ShiningGeneration/events{/privacy}","received_events_url":"https://api.github.com/users/ShiningGeneration/received_events","type":"Organization","site_admin":false},"repo":{"id":40373987,"name":"majaja","full_name":"ShiningGeneration/majaja","owner":{"login":"ShiningGeneration","id":13681218,"avatar_url":"https://avatars.githubusercontent.com/u/13681218?v=3","gravatar_id":"","url":"https://api.github.com/users/ShiningGeneration","html_url":"https://github.com/ShiningGeneration","followers_url":"https://api.github.com/users/ShiningGeneration/followers","following_url":"https://api.github.com/users/ShiningGeneration/following{/other_user}","gists_url":"https://api.github.com/users/ShiningGeneration/gists{/gist_id}","starred_url":"https://api.github.com/users/ShiningGeneration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShiningGeneration/subscriptions","organizations_url":"https://api.github.com/users/ShiningGeneration/orgs","repos_url":"https://api.github.com/users/ShiningGeneration/repos","events_url":"https://api.github.com/users/ShiningGeneration/events{/privacy}","received_events_url":"https://api.github.com/users/ShiningGeneration/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ShiningGeneration/majaja","description":"http://shininggeneration.github.io/majaja/","fork":false,"url":"https://api.github.com/repos/ShiningGeneration/majaja","forks_url":"https://api.github.com/repos/ShiningGeneration/majaja/forks","keys_url":"https://api.github.com/repos/ShiningGeneration/majaja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShiningGeneration/majaja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShiningGeneration/majaja/teams","hooks_url":"https://api.github.com/repos/ShiningGeneration/majaja/hooks","issue_events_url":"https://api.github.com/repos/ShiningGeneration/majaja/issues/events{/number}","events_url":"https://api.github.com/repos/ShiningGeneration/majaja/events","assignees_url":"https://api.github.com/repos/ShiningGeneration/majaja/assignees{/user}","branches_url":"https://api.github.com/repos/ShiningGeneration/majaja/branches{/branch}","tags_url":"https://api.github.com/repos/ShiningGeneration/majaja/tags","blobs_url":"https://api.github.com/repos/ShiningGeneration/majaja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShiningGeneration/majaja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShiningGeneration/majaja/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShiningGeneration/majaja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShiningGeneration/majaja/statuses/{sha}","languages_url":"https://api.github.com/repos/ShiningGeneration/majaja/languages","stargazers_url":"https://api.github.com/repos/ShiningGeneration/majaja/stargazers","contributors_url":"https://api.github.com/repos/ShiningGeneration/majaja/contributors","subscribers_url":"https://api.github.com/repos/ShiningGeneration/majaja/subscribers","subscription_url":"https://api.github.com/repos/ShiningGeneration/majaja/subscription","commits_url":"https://api.github.com/repos/ShiningGeneration/majaja/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShiningGeneration/majaja/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShiningGeneration/majaja/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShiningGeneration/majaja/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShiningGeneration/majaja/contents/{+path}","compare_url":"https://api.github.com/repos/ShiningGeneration/majaja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShiningGeneration/majaja/merges","archive_url":"https://api.github.com/repos/ShiningGeneration/majaja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShiningGeneration/majaja/downloads","issues_url":"https://api.github.com/repos/ShiningGeneration/majaja/issues{/number}","pulls_url":"https://api.github.com/repos/ShiningGeneration/majaja/pulls{/number}","milestones_url":"https://api.github.com/repos/ShiningGeneration/majaja/milestones{/number}","notifications_url":"https://api.github.com/repos/ShiningGeneration/majaja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShiningGeneration/majaja/labels{/name}","releases_url":"https://api.github.com/repos/ShiningGeneration/majaja/releases{/id}","created_at":"2015-08-07T18:05:40Z","updated_at":"2015-08-25T02:13:12Z","pushed_at":"2015-08-29T10:52:41Z","git_url":"git://github.com/ShiningGeneration/majaja.git","ssh_url":"git@github.com:ShiningGeneration/majaja.git","clone_url":"https://github.com/ShiningGeneration/majaja.git","svn_url":"https://github.com/ShiningGeneration/majaja","homepage":"","size":7795,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":13,"forks":4,"open_issues":13,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24"},"html":{"href":"https://github.com/ShiningGeneration/majaja/pull/24"},"issue":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/issues/24"},"comments":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/ShiningGeneration/majaja/statuses/40e19450650c8226045bded4b424be23f211a555"}}}}