{"action":"created","comment":{"url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/comments/110918479","pull_request_review_id":32119768,"id":110918479,"diff_hunk":"@@ -0,0 +1,56 @@\n+import React, { Component } from 'react';\n+import styles from './style.css';\n+//found this online at https://toddmotto.com/creating-a-tabs-component-with-react/ will modify later, i think some of this code is a bit dated\n+\n+export default class Tabs extends Component {\n+\n+  constructor(props) {\n+    super(props)\n+    this.state = {\n+      selected: this.props.selected\n+    }\n+  }\n+\n+  handleClick(index, event) {\n+    event.preventDefault();\n+    this.setState({\n+      selected: index\n+    });\n+  }\n+\n+  _renderTitles() {\n+    function labels(child, index) {\n+      let activeClass = (this.state.selected === index ? 'active' : '');","path":"src/components/tabFolder/Tab.js","position":23,"original_position":23,"commit_id":"36b8e77bed81976170276886f34f0531db892edf","original_commit_id":"36b8e77bed81976170276886f34f0531db892edf","user":{"login":"hamishtaplin","id":930398,"avatar_url":"https://avatars3.githubusercontent.com/u/930398?v=3","gravatar_id":"","url":"https://api.github.com/users/hamishtaplin","html_url":"https://github.com/hamishtaplin","followers_url":"https://api.github.com/users/hamishtaplin/followers","following_url":"https://api.github.com/users/hamishtaplin/following{/other_user}","gists_url":"https://api.github.com/users/hamishtaplin/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishtaplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishtaplin/subscriptions","organizations_url":"https://api.github.com/users/hamishtaplin/orgs","repos_url":"https://api.github.com/users/hamishtaplin/repos","events_url":"https://api.github.com/users/hamishtaplin/events{/privacy}","received_events_url":"https://api.github.com/users/hamishtaplin/received_events","type":"User","site_admin":false},"body":"Try to refactor this whole thing using styled components rather than classNames","created_at":"2017-04-11T14:33:48Z","updated_at":"2017-04-11T14:35:19Z","html_url":"https://github.com/emilioward/EQFrontEndWork/pull/1#discussion_r110918479","pull_request_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/comments/110918479"},"html":{"href":"https://github.com/emilioward/EQFrontEndWork/pull/1#discussion_r110918479"},"pull_request":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1","id":115323163,"html_url":"https://github.com/emilioward/EQFrontEndWork/pull/1","diff_url":"https://github.com/emilioward/EQFrontEndWork/pull/1.diff","patch_url":"https://github.com/emilioward/EQFrontEndWork/pull/1.patch","issue_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/1","number":1,"state":"open","locked":false,"title":"added components","user":{"login":"emilioward","id":16239750,"avatar_url":"https://avatars1.githubusercontent.com/u/16239750?v=3","gravatar_id":"","url":"https://api.github.com/users/emilioward","html_url":"https://github.com/emilioward","followers_url":"https://api.github.com/users/emilioward/followers","following_url":"https://api.github.com/users/emilioward/following{/other_user}","gists_url":"https://api.github.com/users/emilioward/gists{/gist_id}","starred_url":"https://api.github.com/users/emilioward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilioward/subscriptions","organizations_url":"https://api.github.com/users/emilioward/orgs","repos_url":"https://api.github.com/users/emilioward/repos","events_url":"https://api.github.com/users/emilioward/events{/privacy}","received_events_url":"https://api.github.com/users/emilioward/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-11T13:41:41Z","updated_at":"2017-04-11T14:35:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be277167602bfa7a6844885bc0cc46973b1e0d83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1/commits","review_comments_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1/comments","review_comment_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/1/comments","statuses_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/statuses/36b8e77bed81976170276886f34f0531db892edf","head":{"label":"emilioward:add-components","ref":"add-components","sha":"36b8e77bed81976170276886f34f0531db892edf","user":{"login":"emilioward","id":16239750,"avatar_url":"https://avatars1.githubusercontent.com/u/16239750?v=3","gravatar_id":"","url":"https://api.github.com/users/emilioward","html_url":"https://github.com/emilioward","followers_url":"https://api.github.com/users/emilioward/followers","following_url":"https://api.github.com/users/emilioward/following{/other_user}","gists_url":"https://api.github.com/users/emilioward/gists{/gist_id}","starred_url":"https://api.github.com/users/emilioward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilioward/subscriptions","organizations_url":"https://api.github.com/users/emilioward/orgs","repos_url":"https://api.github.com/users/emilioward/repos","events_url":"https://api.github.com/users/emilioward/events{/privacy}","received_events_url":"https://api.github.com/users/emilioward/received_events","type":"User","site_admin":false},"repo":{"id":87194529,"name":"EQFrontEndWork","full_name":"emilioward/EQFrontEndWork","owner":{"login":"emilioward","id":16239750,"avatar_url":"https://avatars1.githubusercontent.com/u/16239750?v=3","gravatar_id":"","url":"https://api.github.com/users/emilioward","html_url":"https://github.com/emilioward","followers_url":"https://api.github.com/users/emilioward/followers","following_url":"https://api.github.com/users/emilioward/following{/other_user}","gists_url":"https://api.github.com/users/emilioward/gists{/gist_id}","starred_url":"https://api.github.com/users/emilioward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilioward/subscriptions","organizations_url":"https://api.github.com/users/emilioward/orgs","repos_url":"https://api.github.com/users/emilioward/repos","events_url":"https://api.github.com/users/emilioward/events{/privacy}","received_events_url":"https://api.github.com/users/emilioward/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emilioward/EQFrontEndWork","description":"Learning how to use React.js","fork":false,"url":"https://api.github.com/repos/emilioward/EQFrontEndWork","forks_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/forks","keys_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/teams","hooks_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/hooks","issue_events_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/events{/number}","events_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/events","assignees_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/assignees{/user}","branches_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/branches{/branch}","tags_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/tags","blobs_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/refs{/sha}","trees_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/statuses/{sha}","languages_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/languages","stargazers_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/stargazers","contributors_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/contributors","subscribers_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/subscribers","subscription_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/subscription","commits_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/commits{/sha}","git_commits_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/commits{/sha}","comments_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/comments{/number}","issue_comment_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/comments{/number}","contents_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/contents/{+path}","compare_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/merges","archive_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/downloads","issues_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues{/number}","pulls_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls{/number}","milestones_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/milestones{/number}","notifications_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/labels{/name}","releases_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/releases{/id}","deployments_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/deployments","created_at":"2017-04-04T14:09:10Z","updated_at":"2017-04-04T14:09:10Z","pushed_at":"2017-04-11T14:23:13Z","git_url":"git://github.com/emilioward/EQFrontEndWork.git","ssh_url":"git@github.com:emilioward/EQFrontEndWork.git","clone_url":"https://github.com/emilioward/EQFrontEndWork.git","svn_url":"https://github.com/emilioward/EQFrontEndWork","homepage":null,"size":87,"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":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"emilioward:master","ref":"master","sha":"0301cb10d50d41513555256bfd865b5a51f8ccb0","user":{"login":"emilioward","id":16239750,"avatar_url":"https://avatars1.githubusercontent.com/u/16239750?v=3","gravatar_id":"","url":"https://api.github.com/users/emilioward","html_url":"https://github.com/emilioward","followers_url":"https://api.github.com/users/emilioward/followers","following_url":"https://api.github.com/users/emilioward/following{/other_user}","gists_url":"https://api.github.com/users/emilioward/gists{/gist_id}","starred_url":"https://api.github.com/users/emilioward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilioward/subscriptions","organizations_url":"https://api.github.com/users/emilioward/orgs","repos_url":"https://api.github.com/users/emilioward/repos","events_url":"https://api.github.com/users/emilioward/events{/privacy}","received_events_url":"https://api.github.com/users/emilioward/received_events","type":"User","site_admin":false},"repo":{"id":87194529,"name":"EQFrontEndWork","full_name":"emilioward/EQFrontEndWork","owner":{"login":"emilioward","id":16239750,"avatar_url":"https://avatars1.githubusercontent.com/u/16239750?v=3","gravatar_id":"","url":"https://api.github.com/users/emilioward","html_url":"https://github.com/emilioward","followers_url":"https://api.github.com/users/emilioward/followers","following_url":"https://api.github.com/users/emilioward/following{/other_user}","gists_url":"https://api.github.com/users/emilioward/gists{/gist_id}","starred_url":"https://api.github.com/users/emilioward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilioward/subscriptions","organizations_url":"https://api.github.com/users/emilioward/orgs","repos_url":"https://api.github.com/users/emilioward/repos","events_url":"https://api.github.com/users/emilioward/events{/privacy}","received_events_url":"https://api.github.com/users/emilioward/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emilioward/EQFrontEndWork","description":"Learning how to use React.js","fork":false,"url":"https://api.github.com/repos/emilioward/EQFrontEndWork","forks_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/forks","keys_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/teams","hooks_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/hooks","issue_events_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/events{/number}","events_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/events","assignees_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/assignees{/user}","branches_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/branches{/branch}","tags_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/tags","blobs_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/refs{/sha}","trees_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/statuses/{sha}","languages_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/languages","stargazers_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/stargazers","contributors_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/contributors","subscribers_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/subscribers","subscription_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/subscription","commits_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/commits{/sha}","git_commits_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/git/commits{/sha}","comments_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/comments{/number}","issue_comment_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/comments{/number}","contents_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/contents/{+path}","compare_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/merges","archive_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/downloads","issues_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues{/number}","pulls_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls{/number}","milestones_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/milestones{/number}","notifications_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/labels{/name}","releases_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/releases{/id}","deployments_url":"https://api.github.com/repos/emilioward/EQFrontEndWork/deployments","created_at":"2017-04-04T14:09:10Z","updated_at":"2017-04-04T14:09:10Z","pushed_at":"2017-04-11T14:23:13Z","git_url":"git://github.com/emilioward/EQFrontEndWork.git","ssh_url":"git@github.com:emilioward/EQFrontEndWork.git","clone_url":"https://github.com/emilioward/EQFrontEndWork.git","svn_url":"https://github.com/emilioward/EQFrontEndWork","homepage":null,"size":87,"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":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1"},"html":{"href":"https://github.com/emilioward/EQFrontEndWork/pull/1"},"issue":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/1"},"comments":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/emilioward/EQFrontEndWork/statuses/36b8e77bed81976170276886f34f0531db892edf"}}}}
{"actor":{"display_login":"hamishtaplin"}}