{"action":"created","comment":{"url":"https://api.github.com/repos/redbadger/react.london/pulls/comments/78747377","id":78747377,"diff_hunk":"@@ -0,0 +1,93 @@\n+/* eslint-disable react/no-danger */\n+\n+import React, { PropTypes } from 'react';\n+\n+export const speakerType = PropTypes.shape({\n+  id: PropTypes.string,\n+  name: PropTypes.string,\n+  company: PropTypes.string,\n+  twitterHandle: PropTypes.string,\n+  githubHandle: PropTypes.string,\n+  blogURL: PropTypes.string,\n+  imageURL: PropTypes.string,\n+});\n+\n+export const speakerBio = (bio) => {\n+  const fullBio = [];\n+  if (bio\n+    && Array.isArray(bio)\n+    && bio.length) {\n+    bio.forEach((paragraph) => {\n+      if (paragraph.text) {\n+        fullBio.push(paragraph.text);\n+      }\n+    });\n+  }\n+  return fullBio.join('\\r\\n\\r\\n');\n+};\n+\n+export const speakerSocialLinks = (speaker) => {\n+  const githubLink = speaker.githubHandle ?\n+    (<a href={`https://github.com/${speaker.githubHandle}`}><span className=\"icon-github\" /></a>)\n+    : null;\n+  const twitterLink = speaker.blogURL ?\n+    (<a href={speaker.blogURL}><span className=\"icon-link\" /></a>)\n+    : null;\n+  const blogLink = speaker.twitterHandle ?\n+    (<a href={`https://twitter.com/${speaker.twitterHandle}`}><span className=\"icon-twitter\" /></a>)\n+    : null;\n+\n+  return (\n+    <div className=\"speaker-description-social-links\">\n+      {githubLink}\n+      {twitterLink}\n+      {blogLink}\n+    </div>\n+  );\n+};\n+\n+export const speakerAvatarImage = (imageURL, speakerName) => {\n+  if (imageURL) {\n+    return (<img\n+      alt={`Speaker ${speakerName}`}\n+      src={imageURL}\n+    />);\n+  }\n+  return (\n+    <div className=\"icon-default-speaker-conference-avatar\" />\n+  );\n+};\n+\n+const SpeakersList = ({ speakers }) => {\n+  const speakerList = speakers.map((speaker) => {\n+    return (\n+      <li key={speaker.id}>\n+        <div className=\"speaker-avatar\">\n+          {speakerAvatarImage(speaker.imageURL, speaker.name)}","path":"shared/components/SpeakersList/index.js","position":66,"original_position":66,"commit_id":"2026b32959d5127a78ad4207b8bba7f6af4d3dd2","original_commit_id":"2026b32959d5127a78ad4207b8bba7f6af4d3dd2","user":{"login":"AndrewBestbier","id":6062416,"avatar_url":"https://avatars.githubusercontent.com/u/6062416?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewBestbier","html_url":"https://github.com/AndrewBestbier","followers_url":"https://api.github.com/users/AndrewBestbier/followers","following_url":"https://api.github.com/users/AndrewBestbier/following{/other_user}","gists_url":"https://api.github.com/users/AndrewBestbier/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewBestbier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewBestbier/subscriptions","organizations_url":"https://api.github.com/users/AndrewBestbier/orgs","repos_url":"https://api.github.com/users/AndrewBestbier/repos","events_url":"https://api.github.com/users/AndrewBestbier/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewBestbier/received_events","type":"User","site_admin":false},"body":"Possibly makes sense if this is: getSpeakerAvatarImage(). ","created_at":"2016-09-14T13:28:32Z","updated_at":"2016-09-14T13:28:32Z","html_url":"https://github.com/redbadger/react.london/pull/197#discussion_r78747377","pull_request_url":"https://api.github.com/repos/redbadger/react.london/pulls/197","_links":{"self":{"href":"https://api.github.com/repos/redbadger/react.london/pulls/comments/78747377"},"html":{"href":"https://github.com/redbadger/react.london/pull/197#discussion_r78747377"},"pull_request":{"href":"https://api.github.com/repos/redbadger/react.london/pulls/197"}}},"pull_request":{"url":"https://api.github.com/repos/redbadger/react.london/pulls/197","id":83304191,"html_url":"https://github.com/redbadger/react.london/pull/197","diff_url":"https://github.com/redbadger/react.london/pull/197.diff","patch_url":"https://github.com/redbadger/react.london/pull/197.patch","issue_url":"https://api.github.com/repos/redbadger/react.london/issues/197","number":197,"state":"open","locked":false,"title":"Speakers page - WIP","user":{"login":"asavin","id":487468,"avatar_url":"https://avatars.githubusercontent.com/u/487468?v=3","gravatar_id":"","url":"https://api.github.com/users/asavin","html_url":"https://github.com/asavin","followers_url":"https://api.github.com/users/asavin/followers","following_url":"https://api.github.com/users/asavin/following{/other_user}","gists_url":"https://api.github.com/users/asavin/gists{/gist_id}","starred_url":"https://api.github.com/users/asavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asavin/subscriptions","organizations_url":"https://api.github.com/users/asavin/orgs","repos_url":"https://api.github.com/users/asavin/repos","events_url":"https://api.github.com/users/asavin/events{/privacy}","received_events_url":"https://api.github.com/users/asavin/received_events","type":"User","site_admin":false},"body":"![giphy 2](https://cloud.githubusercontent.com/assets/487468/18097792/4b622f36-6ed7-11e6-8f38-5c5b9da385d9.gif)\r\n\r\n- [x] Data fetching\r\n- [x] List of speakers\r\n- [x] Speaker avatar\r\n- [x] Speaker social media links\r\n- [x] Speaker bio\r\n- [x] Tests\r\n- [x] Sign off from UXD","created_at":"2016-08-30T16:30:07Z","updated_at":"2016-09-14T13:28:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dcc0da1003687bbfaba3227f99c56d85a087b50","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/redbadger/react.london/pulls/197/commits","review_comments_url":"https://api.github.com/repos/redbadger/react.london/pulls/197/comments","review_comment_url":"https://api.github.com/repos/redbadger/react.london/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redbadger/react.london/issues/197/comments","statuses_url":"https://api.github.com/repos/redbadger/react.london/statuses/2026b32959d5127a78ad4207b8bba7f6af4d3dd2","head":{"label":"redbadger:speakers-page","ref":"speakers-page","sha":"2026b32959d5127a78ad4207b8bba7f6af4d3dd2","user":{"login":"redbadger","id":265650,"avatar_url":"https://avatars.githubusercontent.com/u/265650?v=3","gravatar_id":"","url":"https://api.github.com/users/redbadger","html_url":"https://github.com/redbadger","followers_url":"https://api.github.com/users/redbadger/followers","following_url":"https://api.github.com/users/redbadger/following{/other_user}","gists_url":"https://api.github.com/users/redbadger/gists{/gist_id}","starred_url":"https://api.github.com/users/redbadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbadger/subscriptions","organizations_url":"https://api.github.com/users/redbadger/orgs","repos_url":"https://api.github.com/users/redbadger/repos","events_url":"https://api.github.com/users/redbadger/events{/privacy}","received_events_url":"https://api.github.com/users/redbadger/received_events","type":"Organization","site_admin":false},"repo":{"id":57214228,"name":"react.london","full_name":"redbadger/react.london","owner":{"login":"redbadger","id":265650,"avatar_url":"https://avatars.githubusercontent.com/u/265650?v=3","gravatar_id":"","url":"https://api.github.com/users/redbadger","html_url":"https://github.com/redbadger","followers_url":"https://api.github.com/users/redbadger/followers","following_url":"https://api.github.com/users/redbadger/following{/other_user}","gists_url":"https://api.github.com/users/redbadger/gists{/gist_id}","starred_url":"https://api.github.com/users/redbadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbadger/subscriptions","organizations_url":"https://api.github.com/users/redbadger/orgs","repos_url":"https://api.github.com/users/redbadger/repos","events_url":"https://api.github.com/users/redbadger/events{/privacy}","received_events_url":"https://api.github.com/users/redbadger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redbadger/react.london","description":":star2: react.london conference & community website :star2:","fork":false,"url":"https://api.github.com/repos/redbadger/react.london","forks_url":"https://api.github.com/repos/redbadger/react.london/forks","keys_url":"https://api.github.com/repos/redbadger/react.london/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redbadger/react.london/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redbadger/react.london/teams","hooks_url":"https://api.github.com/repos/redbadger/react.london/hooks","issue_events_url":"https://api.github.com/repos/redbadger/react.london/issues/events{/number}","events_url":"https://api.github.com/repos/redbadger/react.london/events","assignees_url":"https://api.github.com/repos/redbadger/react.london/assignees{/user}","branches_url":"https://api.github.com/repos/redbadger/react.london/branches{/branch}","tags_url":"https://api.github.com/repos/redbadger/react.london/tags","blobs_url":"https://api.github.com/repos/redbadger/react.london/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redbadger/react.london/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redbadger/react.london/git/refs{/sha}","trees_url":"https://api.github.com/repos/redbadger/react.london/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redbadger/react.london/statuses/{sha}","languages_url":"https://api.github.com/repos/redbadger/react.london/languages","stargazers_url":"https://api.github.com/repos/redbadger/react.london/stargazers","contributors_url":"https://api.github.com/repos/redbadger/react.london/contributors","subscribers_url":"https://api.github.com/repos/redbadger/react.london/subscribers","subscription_url":"https://api.github.com/repos/redbadger/react.london/subscription","commits_url":"https://api.github.com/repos/redbadger/react.london/commits{/sha}","git_commits_url":"https://api.github.com/repos/redbadger/react.london/git/commits{/sha}","comments_url":"https://api.github.com/repos/redbadger/react.london/comments{/number}","issue_comment_url":"https://api.github.com/repos/redbadger/react.london/issues/comments{/number}","contents_url":"https://api.github.com/repos/redbadger/react.london/contents/{+path}","compare_url":"https://api.github.com/repos/redbadger/react.london/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redbadger/react.london/merges","archive_url":"https://api.github.com/repos/redbadger/react.london/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redbadger/react.london/downloads","issues_url":"https://api.github.com/repos/redbadger/react.london/issues{/number}","pulls_url":"https://api.github.com/repos/redbadger/react.london/pulls{/number}","milestones_url":"https://api.github.com/repos/redbadger/react.london/milestones{/number}","notifications_url":"https://api.github.com/repos/redbadger/react.london/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redbadger/react.london/labels{/name}","releases_url":"https://api.github.com/repos/redbadger/react.london/releases{/id}","deployments_url":"https://api.github.com/repos/redbadger/react.london/deployments","created_at":"2016-04-27T13:09:10Z","updated_at":"2016-08-26T13:54:51Z","pushed_at":"2016-09-14T11:51:12Z","git_url":"git://github.com/redbadger/react.london.git","ssh_url":"git@github.com:redbadger/react.london.git","clone_url":"https://github.com/redbadger/react.london.git","svn_url":"https://github.com/redbadger/react.london","homepage":"http://react.london","size":8812,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":24,"forks":2,"open_issues":24,"watchers":4,"default_branch":"master"}},"base":{"label":"redbadger:master","ref":"master","sha":"5a208c5051520190bcece24b5d22f159cbdb95a2","user":{"login":"redbadger","id":265650,"avatar_url":"https://avatars.githubusercontent.com/u/265650?v=3","gravatar_id":"","url":"https://api.github.com/users/redbadger","html_url":"https://github.com/redbadger","followers_url":"https://api.github.com/users/redbadger/followers","following_url":"https://api.github.com/users/redbadger/following{/other_user}","gists_url":"https://api.github.com/users/redbadger/gists{/gist_id}","starred_url":"https://api.github.com/users/redbadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbadger/subscriptions","organizations_url":"https://api.github.com/users/redbadger/orgs","repos_url":"https://api.github.com/users/redbadger/repos","events_url":"https://api.github.com/users/redbadger/events{/privacy}","received_events_url":"https://api.github.com/users/redbadger/received_events","type":"Organization","site_admin":false},"repo":{"id":57214228,"name":"react.london","full_name":"redbadger/react.london","owner":{"login":"redbadger","id":265650,"avatar_url":"https://avatars.githubusercontent.com/u/265650?v=3","gravatar_id":"","url":"https://api.github.com/users/redbadger","html_url":"https://github.com/redbadger","followers_url":"https://api.github.com/users/redbadger/followers","following_url":"https://api.github.com/users/redbadger/following{/other_user}","gists_url":"https://api.github.com/users/redbadger/gists{/gist_id}","starred_url":"https://api.github.com/users/redbadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbadger/subscriptions","organizations_url":"https://api.github.com/users/redbadger/orgs","repos_url":"https://api.github.com/users/redbadger/repos","events_url":"https://api.github.com/users/redbadger/events{/privacy}","received_events_url":"https://api.github.com/users/redbadger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redbadger/react.london","description":":star2: react.london conference & community website :star2:","fork":false,"url":"https://api.github.com/repos/redbadger/react.london","forks_url":"https://api.github.com/repos/redbadger/react.london/forks","keys_url":"https://api.github.com/repos/redbadger/react.london/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redbadger/react.london/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redbadger/react.london/teams","hooks_url":"https://api.github.com/repos/redbadger/react.london/hooks","issue_events_url":"https://api.github.com/repos/redbadger/react.london/issues/events{/number}","events_url":"https://api.github.com/repos/redbadger/react.london/events","assignees_url":"https://api.github.com/repos/redbadger/react.london/assignees{/user}","branches_url":"https://api.github.com/repos/redbadger/react.london/branches{/branch}","tags_url":"https://api.github.com/repos/redbadger/react.london/tags","blobs_url":"https://api.github.com/repos/redbadger/react.london/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redbadger/react.london/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redbadger/react.london/git/refs{/sha}","trees_url":"https://api.github.com/repos/redbadger/react.london/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redbadger/react.london/statuses/{sha}","languages_url":"https://api.github.com/repos/redbadger/react.london/languages","stargazers_url":"https://api.github.com/repos/redbadger/react.london/stargazers","contributors_url":"https://api.github.com/repos/redbadger/react.london/contributors","subscribers_url":"https://api.github.com/repos/redbadger/react.london/subscribers","subscription_url":"https://api.github.com/repos/redbadger/react.london/subscription","commits_url":"https://api.github.com/repos/redbadger/react.london/commits{/sha}","git_commits_url":"https://api.github.com/repos/redbadger/react.london/git/commits{/sha}","comments_url":"https://api.github.com/repos/redbadger/react.london/comments{/number}","issue_comment_url":"https://api.github.com/repos/redbadger/react.london/issues/comments{/number}","contents_url":"https://api.github.com/repos/redbadger/react.london/contents/{+path}","compare_url":"https://api.github.com/repos/redbadger/react.london/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redbadger/react.london/merges","archive_url":"https://api.github.com/repos/redbadger/react.london/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redbadger/react.london/downloads","issues_url":"https://api.github.com/repos/redbadger/react.london/issues{/number}","pulls_url":"https://api.github.com/repos/redbadger/react.london/pulls{/number}","milestones_url":"https://api.github.com/repos/redbadger/react.london/milestones{/number}","notifications_url":"https://api.github.com/repos/redbadger/react.london/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redbadger/react.london/labels{/name}","releases_url":"https://api.github.com/repos/redbadger/react.london/releases{/id}","deployments_url":"https://api.github.com/repos/redbadger/react.london/deployments","created_at":"2016-04-27T13:09:10Z","updated_at":"2016-08-26T13:54:51Z","pushed_at":"2016-09-14T11:51:12Z","git_url":"git://github.com/redbadger/react.london.git","ssh_url":"git@github.com:redbadger/react.london.git","clone_url":"https://github.com/redbadger/react.london.git","svn_url":"https://github.com/redbadger/react.london","homepage":"http://react.london","size":8812,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":24,"forks":2,"open_issues":24,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redbadger/react.london/pulls/197"},"html":{"href":"https://github.com/redbadger/react.london/pull/197"},"issue":{"href":"https://api.github.com/repos/redbadger/react.london/issues/197"},"comments":{"href":"https://api.github.com/repos/redbadger/react.london/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/redbadger/react.london/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/redbadger/react.london/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redbadger/react.london/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/redbadger/react.london/statuses/2026b32959d5127a78ad4207b8bba7f6af4d3dd2"}}}}
{"actor":{"display_login":"AndrewBestbier"}}