{"action":"created","comment":{"url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/comments/231794000","pull_request_review_id":172840390,"id":231794000,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTc5NDAwMA==","diff_hunk":"@@ -1,34 +1,62 @@\n import React from 'react';\n import styles from './Letter.css';\n+import classnames from 'classnames';\n \n-const checkLetter = (letter, id, onLetterClick) => {\n-    const url = `/phrases/check`;\n-    return fetch(url, {\n-        headers: {\n-            'Content-Type': 'application/json',\n-            'Accept': 'application/json',\n-        },\n-        method: 'post',\n-        body: JSON.stringify({\n-            id,\n-            letter,\n+class Letter extends React.PureComponent {\n+    state = {\n+        isLetterCorrect: null,\n+        usedLetter: false,\n+    };\n+\n+    checkLetter = (letter, id) => {\n+        const url = `/phrases/check`;\n+        return fetch(url, {\n+            headers: {\n+                'Content-Type': 'application/json',\n+                'Accept': 'application/json',\n+            },","path":"src/components/Alphabet/Letter/Letter.js","position":28,"original_position":28,"commit_id":"5ff81776fc1038b64d116c909625684d81b431f6","original_commit_id":"5ff81776fc1038b64d116c909625684d81b431f6","user":{"login":"Dammic","id":18100361,"node_id":"MDQ6VXNlcjE4MTAwMzYx","avatar_url":"https://avatars0.githubusercontent.com/u/18100361?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammic","html_url":"https://github.com/Dammic","followers_url":"https://api.github.com/users/Dammic/followers","following_url":"https://api.github.com/users/Dammic/following{/other_user}","gists_url":"https://api.github.com/users/Dammic/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammic/subscriptions","organizations_url":"https://api.github.com/users/Dammic/orgs","repos_url":"https://api.github.com/users/Dammic/repos","events_url":"https://api.github.com/users/Dammic/events{/privacy}","received_events_url":"https://api.github.com/users/Dammic/received_events","type":"User","site_admin":false},"body":"Do you need those 'Content-Type' and 'Accept' headers here?","created_at":"2018-11-08T08:12:31Z","updated_at":"2018-11-08T08:12:31Z","html_url":"https://github.com/DominikDR/GallowsGame/pull/4#discussion_r231794000","pull_request_url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/comments/231794000"},"html":{"href":"https://github.com/DominikDR/GallowsGame/pull/4#discussion_r231794000"},"pull_request":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4","id":228136634,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MTM2NjM0","html_url":"https://github.com/DominikDR/GallowsGame/pull/4","diff_url":"https://github.com/DominikDR/GallowsGame/pull/4.diff","patch_url":"https://github.com/DominikDR/GallowsGame/pull/4.patch","issue_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues/4","number":4,"state":"open","locked":false,"title":"Feature/ui for clicked letter","user":{"login":"DominikDR","id":38359768,"node_id":"MDQ6VXNlcjM4MzU5NzY4","avatar_url":"https://avatars0.githubusercontent.com/u/38359768?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikDR","html_url":"https://github.com/DominikDR","followers_url":"https://api.github.com/users/DominikDR/followers","following_url":"https://api.github.com/users/DominikDR/following{/other_user}","gists_url":"https://api.github.com/users/DominikDR/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikDR/subscriptions","organizations_url":"https://api.github.com/users/DominikDR/orgs","repos_url":"https://api.github.com/users/DominikDR/repos","events_url":"https://api.github.com/users/DominikDR/events{/privacy}","received_events_url":"https://api.github.com/users/DominikDR/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-03T19:27:43Z","updated_at":"2018-11-08T08:12:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4218348caf03987426f6cac00953aab903490653","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4/commits","review_comments_url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4/comments","review_comment_url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues/4/comments","statuses_url":"https://api.github.com/repos/DominikDR/GallowsGame/statuses/5ff81776fc1038b64d116c909625684d81b431f6","head":{"label":"DominikDR:feature/UI-for-clicked-letter","ref":"feature/UI-for-clicked-letter","sha":"5ff81776fc1038b64d116c909625684d81b431f6","user":{"login":"DominikDR","id":38359768,"node_id":"MDQ6VXNlcjM4MzU5NzY4","avatar_url":"https://avatars0.githubusercontent.com/u/38359768?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikDR","html_url":"https://github.com/DominikDR","followers_url":"https://api.github.com/users/DominikDR/followers","following_url":"https://api.github.com/users/DominikDR/following{/other_user}","gists_url":"https://api.github.com/users/DominikDR/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikDR/subscriptions","organizations_url":"https://api.github.com/users/DominikDR/orgs","repos_url":"https://api.github.com/users/DominikDR/repos","events_url":"https://api.github.com/users/DominikDR/events{/privacy}","received_events_url":"https://api.github.com/users/DominikDR/received_events","type":"User","site_admin":false},"repo":{"id":151853069,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE4NTMwNjk=","name":"GallowsGame","full_name":"DominikDR/GallowsGame","private":false,"owner":{"login":"DominikDR","id":38359768,"node_id":"MDQ6VXNlcjM4MzU5NzY4","avatar_url":"https://avatars0.githubusercontent.com/u/38359768?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikDR","html_url":"https://github.com/DominikDR","followers_url":"https://api.github.com/users/DominikDR/followers","following_url":"https://api.github.com/users/DominikDR/following{/other_user}","gists_url":"https://api.github.com/users/DominikDR/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikDR/subscriptions","organizations_url":"https://api.github.com/users/DominikDR/orgs","repos_url":"https://api.github.com/users/DominikDR/repos","events_url":"https://api.github.com/users/DominikDR/events{/privacy}","received_events_url":"https://api.github.com/users/DominikDR/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DominikDR/GallowsGame","description":null,"fork":false,"url":"https://api.github.com/repos/DominikDR/GallowsGame","forks_url":"https://api.github.com/repos/DominikDR/GallowsGame/forks","keys_url":"https://api.github.com/repos/DominikDR/GallowsGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DominikDR/GallowsGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DominikDR/GallowsGame/teams","hooks_url":"https://api.github.com/repos/DominikDR/GallowsGame/hooks","issue_events_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues/events{/number}","events_url":"https://api.github.com/repos/DominikDR/GallowsGame/events","assignees_url":"https://api.github.com/repos/DominikDR/GallowsGame/assignees{/user}","branches_url":"https://api.github.com/repos/DominikDR/GallowsGame/branches{/branch}","tags_url":"https://api.github.com/repos/DominikDR/GallowsGame/tags","blobs_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DominikDR/GallowsGame/statuses/{sha}","languages_url":"https://api.github.com/repos/DominikDR/GallowsGame/languages","stargazers_url":"https://api.github.com/repos/DominikDR/GallowsGame/stargazers","contributors_url":"https://api.github.com/repos/DominikDR/GallowsGame/contributors","subscribers_url":"https://api.github.com/repos/DominikDR/GallowsGame/subscribers","subscription_url":"https://api.github.com/repos/DominikDR/GallowsGame/subscription","commits_url":"https://api.github.com/repos/DominikDR/GallowsGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/DominikDR/GallowsGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/DominikDR/GallowsGame/contents/{+path}","compare_url":"https://api.github.com/repos/DominikDR/GallowsGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DominikDR/GallowsGame/merges","archive_url":"https://api.github.com/repos/DominikDR/GallowsGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DominikDR/GallowsGame/downloads","issues_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues{/number}","pulls_url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls{/number}","milestones_url":"https://api.github.com/repos/DominikDR/GallowsGame/milestones{/number}","notifications_url":"https://api.github.com/repos/DominikDR/GallowsGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DominikDR/GallowsGame/labels{/name}","releases_url":"https://api.github.com/repos/DominikDR/GallowsGame/releases{/id}","deployments_url":"https://api.github.com/repos/DominikDR/GallowsGame/deployments","created_at":"2018-10-06T15:23:49Z","updated_at":"2018-11-03T18:48:24Z","pushed_at":"2018-11-03T19:27:44Z","git_url":"git://github.com/DominikDR/GallowsGame.git","ssh_url":"git@github.com:DominikDR/GallowsGame.git","clone_url":"https://github.com/DominikDR/GallowsGame.git","svn_url":"https://github.com/DominikDR/GallowsGame","homepage":null,"size":786,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DominikDR:master","ref":"master","sha":"79250f028eecb6f0f83f12a792f65ac8e615e0a3","user":{"login":"DominikDR","id":38359768,"node_id":"MDQ6VXNlcjM4MzU5NzY4","avatar_url":"https://avatars0.githubusercontent.com/u/38359768?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikDR","html_url":"https://github.com/DominikDR","followers_url":"https://api.github.com/users/DominikDR/followers","following_url":"https://api.github.com/users/DominikDR/following{/other_user}","gists_url":"https://api.github.com/users/DominikDR/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikDR/subscriptions","organizations_url":"https://api.github.com/users/DominikDR/orgs","repos_url":"https://api.github.com/users/DominikDR/repos","events_url":"https://api.github.com/users/DominikDR/events{/privacy}","received_events_url":"https://api.github.com/users/DominikDR/received_events","type":"User","site_admin":false},"repo":{"id":151853069,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE4NTMwNjk=","name":"GallowsGame","full_name":"DominikDR/GallowsGame","private":false,"owner":{"login":"DominikDR","id":38359768,"node_id":"MDQ6VXNlcjM4MzU5NzY4","avatar_url":"https://avatars0.githubusercontent.com/u/38359768?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikDR","html_url":"https://github.com/DominikDR","followers_url":"https://api.github.com/users/DominikDR/followers","following_url":"https://api.github.com/users/DominikDR/following{/other_user}","gists_url":"https://api.github.com/users/DominikDR/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikDR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikDR/subscriptions","organizations_url":"https://api.github.com/users/DominikDR/orgs","repos_url":"https://api.github.com/users/DominikDR/repos","events_url":"https://api.github.com/users/DominikDR/events{/privacy}","received_events_url":"https://api.github.com/users/DominikDR/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DominikDR/GallowsGame","description":null,"fork":false,"url":"https://api.github.com/repos/DominikDR/GallowsGame","forks_url":"https://api.github.com/repos/DominikDR/GallowsGame/forks","keys_url":"https://api.github.com/repos/DominikDR/GallowsGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DominikDR/GallowsGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DominikDR/GallowsGame/teams","hooks_url":"https://api.github.com/repos/DominikDR/GallowsGame/hooks","issue_events_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues/events{/number}","events_url":"https://api.github.com/repos/DominikDR/GallowsGame/events","assignees_url":"https://api.github.com/repos/DominikDR/GallowsGame/assignees{/user}","branches_url":"https://api.github.com/repos/DominikDR/GallowsGame/branches{/branch}","tags_url":"https://api.github.com/repos/DominikDR/GallowsGame/tags","blobs_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DominikDR/GallowsGame/statuses/{sha}","languages_url":"https://api.github.com/repos/DominikDR/GallowsGame/languages","stargazers_url":"https://api.github.com/repos/DominikDR/GallowsGame/stargazers","contributors_url":"https://api.github.com/repos/DominikDR/GallowsGame/contributors","subscribers_url":"https://api.github.com/repos/DominikDR/GallowsGame/subscribers","subscription_url":"https://api.github.com/repos/DominikDR/GallowsGame/subscription","commits_url":"https://api.github.com/repos/DominikDR/GallowsGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/DominikDR/GallowsGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/DominikDR/GallowsGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/DominikDR/GallowsGame/contents/{+path}","compare_url":"https://api.github.com/repos/DominikDR/GallowsGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DominikDR/GallowsGame/merges","archive_url":"https://api.github.com/repos/DominikDR/GallowsGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DominikDR/GallowsGame/downloads","issues_url":"https://api.github.com/repos/DominikDR/GallowsGame/issues{/number}","pulls_url":"https://api.github.com/repos/DominikDR/GallowsGame/pulls{/number}","milestones_url":"https://api.github.com/repos/DominikDR/GallowsGame/milestones{/number}","notifications_url":"https://api.github.com/repos/DominikDR/GallowsGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DominikDR/GallowsGame/labels{/name}","releases_url":"https://api.github.com/repos/DominikDR/GallowsGame/releases{/id}","deployments_url":"https://api.github.com/repos/DominikDR/GallowsGame/deployments","created_at":"2018-10-06T15:23:49Z","updated_at":"2018-11-03T18:48:24Z","pushed_at":"2018-11-03T19:27:44Z","git_url":"git://github.com/DominikDR/GallowsGame.git","ssh_url":"git@github.com:DominikDR/GallowsGame.git","clone_url":"https://github.com/DominikDR/GallowsGame.git","svn_url":"https://github.com/DominikDR/GallowsGame","homepage":null,"size":786,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4"},"html":{"href":"https://github.com/DominikDR/GallowsGame/pull/4"},"issue":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/issues/4"},"comments":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/DominikDR/GallowsGame/statuses/5ff81776fc1038b64d116c909625684d81b431f6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Dammic"}}