{"action":"created","comment":{"url":"https://api.github.com/repos/chute/chute-display-components/pulls/comments/42551325","id":42551325,"diff_hunk":"@@ -1,15 +1,47 @@\n 'use strict'\n \n-import React, {PropTypes} from 'react'\n-\n+import React, {Component, PropTypes} from 'react'\n import classNames from 'classnames'\n \n import './GridAsset.scss'\n \n-export default React.createClass({\n-  propTypes: {\n+export default class GridAsset extends Component {\n+  static propTypes = {\n     asset: PropTypes.object.isRequired\n-  },\n+  }\n+\n+  render() {\n+    let asset = () => {\n+      if (this.props.asset.withCaption) {\n+        return this.renderWithCaption()\n+      }\n+\n+      if (this.props.asset.tweetOnly) {\n+        return this.renderTweetOnly()\n+      }\n+\n+      return this.renderAsset()\n+    }\n+\n+    return asset()","path":"src/components/live-displays/Grid/GridAsset.jsx","position":31,"original_position":31,"commit_id":"cc0a54f39b25caad25eedb0a871b3b220b41f034","original_commit_id":"cc0a54f39b25caad25eedb0a871b3b220b41f034","user":{"login":"petrbela","id":668124,"avatar_url":"https://avatars.githubusercontent.com/u/668124?v=3","gravatar_id":"","url":"https://api.github.com/users/petrbela","html_url":"https://github.com/petrbela","followers_url":"https://api.github.com/users/petrbela/followers","following_url":"https://api.github.com/users/petrbela/following{/other_user}","gists_url":"https://api.github.com/users/petrbela/gists{/gist_id}","starred_url":"https://api.github.com/users/petrbela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrbela/subscriptions","organizations_url":"https://api.github.com/users/petrbela/orgs","repos_url":"https://api.github.com/users/petrbela/repos","events_url":"https://api.github.com/users/petrbela/events{/privacy}","received_events_url":"https://api.github.com/users/petrbela/received_events","type":"User","site_admin":false},"body":"the function is just making it more complicated imho","created_at":"2015-10-20T20:44:20Z","updated_at":"2015-10-20T20:44:20Z","html_url":"https://github.com/chute/chute-display-components/pull/13#discussion_r42551325","pull_request_url":"https://api.github.com/repos/chute/chute-display-components/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/chute/chute-display-components/pulls/comments/42551325"},"html":{"href":"https://github.com/chute/chute-display-components/pull/13#discussion_r42551325"},"pull_request":{"href":"https://api.github.com/repos/chute/chute-display-components/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/chute/chute-display-components/pulls/13","id":48247617,"html_url":"https://github.com/chute/chute-display-components/pull/13","diff_url":"https://github.com/chute/chute-display-components/pull/13.diff","patch_url":"https://github.com/chute/chute-display-components/pull/13.patch","issue_url":"https://api.github.com/repos/chute/chute-display-components/issues/13","number":13,"state":"open","locked":false,"title":"Feat/no tweets on wall [Delivers #106147038]","user":{"login":"chiefGui","id":1330257,"avatar_url":"https://avatars.githubusercontent.com/u/1330257?v=3","gravatar_id":"","url":"https://api.github.com/users/chiefGui","html_url":"https://github.com/chiefGui","followers_url":"https://api.github.com/users/chiefGui/followers","following_url":"https://api.github.com/users/chiefGui/following{/other_user}","gists_url":"https://api.github.com/users/chiefGui/gists{/gist_id}","starred_url":"https://api.github.com/users/chiefGui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiefGui/subscriptions","organizations_url":"https://api.github.com/users/chiefGui/orgs","repos_url":"https://api.github.com/users/chiefGui/repos","events_url":"https://api.github.com/users/chiefGui/events{/privacy}","received_events_url":"https://api.github.com/users/chiefGui/received_events","type":"User","site_admin":false},"body":"@fosterdill @harby @ozeias @ThadeuBrito @petrbela ","created_at":"2015-10-20T19:40:07Z","updated_at":"2015-10-20T20:44:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58fd3c737a00ec5c34fd67f2ada7ee77b730edf0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chute/chute-display-components/pulls/13/commits","review_comments_url":"https://api.github.com/repos/chute/chute-display-components/pulls/13/comments","review_comment_url":"https://api.github.com/repos/chute/chute-display-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chute/chute-display-components/issues/13/comments","statuses_url":"https://api.github.com/repos/chute/chute-display-components/statuses/cc0a54f39b25caad25eedb0a871b3b220b41f034","head":{"label":"chute:feat/no-tweets-on-wall","ref":"feat/no-tweets-on-wall","sha":"cc0a54f39b25caad25eedb0a871b3b220b41f034","user":{"login":"chute","id":846285,"avatar_url":"https://avatars.githubusercontent.com/u/846285?v=3","gravatar_id":"","url":"https://api.github.com/users/chute","html_url":"https://github.com/chute","followers_url":"https://api.github.com/users/chute/followers","following_url":"https://api.github.com/users/chute/following{/other_user}","gists_url":"https://api.github.com/users/chute/gists{/gist_id}","starred_url":"https://api.github.com/users/chute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chute/subscriptions","organizations_url":"https://api.github.com/users/chute/orgs","repos_url":"https://api.github.com/users/chute/repos","events_url":"https://api.github.com/users/chute/events{/privacy}","received_events_url":"https://api.github.com/users/chute/received_events","type":"Organization","site_admin":false},"repo":{"id":41064248,"name":"chute-display-components","full_name":"chute/chute-display-components","owner":{"login":"chute","id":846285,"avatar_url":"https://avatars.githubusercontent.com/u/846285?v=3","gravatar_id":"","url":"https://api.github.com/users/chute","html_url":"https://github.com/chute","followers_url":"https://api.github.com/users/chute/followers","following_url":"https://api.github.com/users/chute/following{/other_user}","gists_url":"https://api.github.com/users/chute/gists{/gist_id}","starred_url":"https://api.github.com/users/chute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chute/subscriptions","organizations_url":"https://api.github.com/users/chute/orgs","repos_url":"https://api.github.com/users/chute/repos","events_url":"https://api.github.com/users/chute/events{/privacy}","received_events_url":"https://api.github.com/users/chute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chute/chute-display-components","description":"","fork":false,"url":"https://api.github.com/repos/chute/chute-display-components","forks_url":"https://api.github.com/repos/chute/chute-display-components/forks","keys_url":"https://api.github.com/repos/chute/chute-display-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chute/chute-display-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chute/chute-display-components/teams","hooks_url":"https://api.github.com/repos/chute/chute-display-components/hooks","issue_events_url":"https://api.github.com/repos/chute/chute-display-components/issues/events{/number}","events_url":"https://api.github.com/repos/chute/chute-display-components/events","assignees_url":"https://api.github.com/repos/chute/chute-display-components/assignees{/user}","branches_url":"https://api.github.com/repos/chute/chute-display-components/branches{/branch}","tags_url":"https://api.github.com/repos/chute/chute-display-components/tags","blobs_url":"https://api.github.com/repos/chute/chute-display-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chute/chute-display-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chute/chute-display-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/chute/chute-display-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chute/chute-display-components/statuses/{sha}","languages_url":"https://api.github.com/repos/chute/chute-display-components/languages","stargazers_url":"https://api.github.com/repos/chute/chute-display-components/stargazers","contributors_url":"https://api.github.com/repos/chute/chute-display-components/contributors","subscribers_url":"https://api.github.com/repos/chute/chute-display-components/subscribers","subscription_url":"https://api.github.com/repos/chute/chute-display-components/subscription","commits_url":"https://api.github.com/repos/chute/chute-display-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/chute/chute-display-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/chute/chute-display-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/chute/chute-display-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/chute/chute-display-components/contents/{+path}","compare_url":"https://api.github.com/repos/chute/chute-display-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chute/chute-display-components/merges","archive_url":"https://api.github.com/repos/chute/chute-display-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chute/chute-display-components/downloads","issues_url":"https://api.github.com/repos/chute/chute-display-components/issues{/number}","pulls_url":"https://api.github.com/repos/chute/chute-display-components/pulls{/number}","milestones_url":"https://api.github.com/repos/chute/chute-display-components/milestones{/number}","notifications_url":"https://api.github.com/repos/chute/chute-display-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chute/chute-display-components/labels{/name}","releases_url":"https://api.github.com/repos/chute/chute-display-components/releases{/id}","created_at":"2015-08-19T23:10:06Z","updated_at":"2015-10-20T13:46:58Z","pushed_at":"2015-10-20T19:40:08Z","git_url":"git://github.com/chute/chute-display-components.git","ssh_url":"git@github.com:chute/chute-display-components.git","clone_url":"https://github.com/chute/chute-display-components.git","svn_url":"https://github.com/chute/chute-display-components","homepage":null,"size":740,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"chute:master","ref":"master","sha":"7393d22d14bbe62bd2d4d9ce4e3aa4c9c668244e","user":{"login":"chute","id":846285,"avatar_url":"https://avatars.githubusercontent.com/u/846285?v=3","gravatar_id":"","url":"https://api.github.com/users/chute","html_url":"https://github.com/chute","followers_url":"https://api.github.com/users/chute/followers","following_url":"https://api.github.com/users/chute/following{/other_user}","gists_url":"https://api.github.com/users/chute/gists{/gist_id}","starred_url":"https://api.github.com/users/chute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chute/subscriptions","organizations_url":"https://api.github.com/users/chute/orgs","repos_url":"https://api.github.com/users/chute/repos","events_url":"https://api.github.com/users/chute/events{/privacy}","received_events_url":"https://api.github.com/users/chute/received_events","type":"Organization","site_admin":false},"repo":{"id":41064248,"name":"chute-display-components","full_name":"chute/chute-display-components","owner":{"login":"chute","id":846285,"avatar_url":"https://avatars.githubusercontent.com/u/846285?v=3","gravatar_id":"","url":"https://api.github.com/users/chute","html_url":"https://github.com/chute","followers_url":"https://api.github.com/users/chute/followers","following_url":"https://api.github.com/users/chute/following{/other_user}","gists_url":"https://api.github.com/users/chute/gists{/gist_id}","starred_url":"https://api.github.com/users/chute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chute/subscriptions","organizations_url":"https://api.github.com/users/chute/orgs","repos_url":"https://api.github.com/users/chute/repos","events_url":"https://api.github.com/users/chute/events{/privacy}","received_events_url":"https://api.github.com/users/chute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chute/chute-display-components","description":"","fork":false,"url":"https://api.github.com/repos/chute/chute-display-components","forks_url":"https://api.github.com/repos/chute/chute-display-components/forks","keys_url":"https://api.github.com/repos/chute/chute-display-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chute/chute-display-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chute/chute-display-components/teams","hooks_url":"https://api.github.com/repos/chute/chute-display-components/hooks","issue_events_url":"https://api.github.com/repos/chute/chute-display-components/issues/events{/number}","events_url":"https://api.github.com/repos/chute/chute-display-components/events","assignees_url":"https://api.github.com/repos/chute/chute-display-components/assignees{/user}","branches_url":"https://api.github.com/repos/chute/chute-display-components/branches{/branch}","tags_url":"https://api.github.com/repos/chute/chute-display-components/tags","blobs_url":"https://api.github.com/repos/chute/chute-display-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chute/chute-display-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chute/chute-display-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/chute/chute-display-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chute/chute-display-components/statuses/{sha}","languages_url":"https://api.github.com/repos/chute/chute-display-components/languages","stargazers_url":"https://api.github.com/repos/chute/chute-display-components/stargazers","contributors_url":"https://api.github.com/repos/chute/chute-display-components/contributors","subscribers_url":"https://api.github.com/repos/chute/chute-display-components/subscribers","subscription_url":"https://api.github.com/repos/chute/chute-display-components/subscription","commits_url":"https://api.github.com/repos/chute/chute-display-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/chute/chute-display-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/chute/chute-display-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/chute/chute-display-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/chute/chute-display-components/contents/{+path}","compare_url":"https://api.github.com/repos/chute/chute-display-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chute/chute-display-components/merges","archive_url":"https://api.github.com/repos/chute/chute-display-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chute/chute-display-components/downloads","issues_url":"https://api.github.com/repos/chute/chute-display-components/issues{/number}","pulls_url":"https://api.github.com/repos/chute/chute-display-components/pulls{/number}","milestones_url":"https://api.github.com/repos/chute/chute-display-components/milestones{/number}","notifications_url":"https://api.github.com/repos/chute/chute-display-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chute/chute-display-components/labels{/name}","releases_url":"https://api.github.com/repos/chute/chute-display-components/releases{/id}","created_at":"2015-08-19T23:10:06Z","updated_at":"2015-10-20T13:46:58Z","pushed_at":"2015-10-20T19:40:08Z","git_url":"git://github.com/chute/chute-display-components.git","ssh_url":"git@github.com:chute/chute-display-components.git","clone_url":"https://github.com/chute/chute-display-components.git","svn_url":"https://github.com/chute/chute-display-components","homepage":null,"size":740,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chute/chute-display-components/pulls/13"},"html":{"href":"https://github.com/chute/chute-display-components/pull/13"},"issue":{"href":"https://api.github.com/repos/chute/chute-display-components/issues/13"},"comments":{"href":"https://api.github.com/repos/chute/chute-display-components/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/chute/chute-display-components/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/chute/chute-display-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chute/chute-display-components/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/chute/chute-display-components/statuses/cc0a54f39b25caad25eedb0a871b3b220b41f034"}}}}