{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/reaction/pulls/comments/195683253","pull_request_review_id":129101772,"id":195683253,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTY4MzI1Mw==","diff_hunk":"@@ -0,0 +1,78 @@\n+import React from \"react\"\n+import { Serif } from \"@artsy/palette\"\n+import styled from \"styled-components\"\n+import { space, SpaceProps } from \"styled-system\"\n+import { Flex } from \"Styleguide/Elements/Flex\"\n+import { Location } from \"../../../../Assets/Icons/Location\"\n+\n+export interface PartnerInfoProps {\n+  artwork?: {\n+    readonly collecting_institution?: string\n+  }\n+  partner: {\n+    readonly __id: string\n+    readonly name: string\n+    readonly href?: string\n+    readonly locations: Array<{\n+      readonly city: string\n+    }>\n+  }\n+}\n+\n+const PartnerInfoContainer = styled.div.attrs<SpaceProps>({})`\n+  ${space};\n+`\n+const LocationsContainer = styled.div``\n+\n+export class PartnerInfo extends React.Component<PartnerInfoProps> {\n+  renderPartnerName(partner) {\n+    return partner.href ? (\n+      <Serif size=\"5t\" display=\"inline-block\">\n+        <a href={partner.href}>{partner.name}</a>\n+      </Serif>\n+    ) : (\n+      <Serif size=\"5t\" display=\"inline-block\">\n+        {partner.name}\n+      </Serif>\n+    )\n+  }\n+  renderCollectingInstitution(artwork) {\n+    return <Serif size=\"3\">{artwork.collecting_institution}</Serif>","path":"src/Styleguide/Pages/Artwork/Sidebar/PartnerInfo.tsx","position":40,"original_position":40,"commit_id":"910030e43f726d8ed1111ed213732ec3198ffdd2","original_commit_id":"910030e43f726d8ed1111ed213732ec3198ffdd2","user":{"login":"alloy","id":2320,"node_id":"MDQ6VXNlcjIzMjA=","avatar_url":"https://avatars2.githubusercontent.com/u/2320?v=4","gravatar_id":"","url":"https://api.github.com/users/alloy","html_url":"https://github.com/alloy","followers_url":"https://api.github.com/users/alloy/followers","following_url":"https://api.github.com/users/alloy/following{/other_user}","gists_url":"https://api.github.com/users/alloy/gists{/gist_id}","starred_url":"https://api.github.com/users/alloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alloy/subscriptions","organizations_url":"https://api.github.com/users/alloy/orgs","repos_url":"https://api.github.com/users/alloy/repos","events_url":"https://api.github.com/users/alloy/events{/privacy}","received_events_url":"https://api.github.com/users/alloy/received_events","type":"User","site_admin":false},"body":"Seeing as this is a method, I’d just access `this.props.artwork` here, because it will automatically give you the right typing from the ‘props’ interface, whereas passing it as a parameter means you’d need to type it again.","created_at":"2018-06-15T09:44:26Z","updated_at":"2018-06-15T09:44:26Z","html_url":"https://github.com/artsy/reaction/pull/809#discussion_r195683253","pull_request_url":"https://api.github.com/repos/artsy/reaction/pulls/809","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/artsy/reaction/pulls/comments/195683253"},"html":{"href":"https://github.com/artsy/reaction/pull/809#discussion_r195683253"},"pull_request":{"href":"https://api.github.com/repos/artsy/reaction/pulls/809"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/reaction/pulls/809","id":195068287,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MDY4Mjg3","html_url":"https://github.com/artsy/reaction/pull/809","diff_url":"https://github.com/artsy/reaction/pull/809.diff","patch_url":"https://github.com/artsy/reaction/pull/809.patch","issue_url":"https://api.github.com/repos/artsy/reaction/issues/809","number":809,"state":"open","locked":false,"title":"adding partner info to sidebar","user":{"login":"oxaudo","id":437156,"node_id":"MDQ6VXNlcjQzNzE1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/437156?v=4","gravatar_id":"","url":"https://api.github.com/users/oxaudo","html_url":"https://github.com/oxaudo","followers_url":"https://api.github.com/users/oxaudo/followers","following_url":"https://api.github.com/users/oxaudo/following{/other_user}","gists_url":"https://api.github.com/users/oxaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/oxaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxaudo/subscriptions","organizations_url":"https://api.github.com/users/oxaudo/orgs","repos_url":"https://api.github.com/users/oxaudo/repos","events_url":"https://api.github.com/users/oxaudo/events{/privacy}","received_events_url":"https://api.github.com/users/oxaudo/received_events","type":"User","site_admin":false},"body":"This adds partner part:\r\n<img width=\"484\" alt=\"screen shot 2018-06-14 at 11 13 19 pm\" src=\"https://user-images.githubusercontent.com/437156/41448455-a3ddf0a6-7028-11e8-8e77-f43eaea1c90f.png\">\r\n","created_at":"2018-06-15T03:15:26Z","updated_at":"2018-06-15T09:44:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a041e04255c07e112d1aa016cbd46e3ba7efb89","assignee":{"login":"zephraph","id":3087225,"node_id":"MDQ6VXNlcjMwODcyMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/3087225?v=4","gravatar_id":"","url":"https://api.github.com/users/zephraph","html_url":"https://github.com/zephraph","followers_url":"https://api.github.com/users/zephraph/followers","following_url":"https://api.github.com/users/zephraph/following{/other_user}","gists_url":"https://api.github.com/users/zephraph/gists{/gist_id}","starred_url":"https://api.github.com/users/zephraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephraph/subscriptions","organizations_url":"https://api.github.com/users/zephraph/orgs","repos_url":"https://api.github.com/users/zephraph/repos","events_url":"https://api.github.com/users/zephraph/events{/privacy}","received_events_url":"https://api.github.com/users/zephraph/received_events","type":"User","site_admin":false},"assignees":[{"login":"zephraph","id":3087225,"node_id":"MDQ6VXNlcjMwODcyMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/3087225?v=4","gravatar_id":"","url":"https://api.github.com/users/zephraph","html_url":"https://github.com/zephraph","followers_url":"https://api.github.com/users/zephraph/followers","following_url":"https://api.github.com/users/zephraph/following{/other_user}","gists_url":"https://api.github.com/users/zephraph/gists{/gist_id}","starred_url":"https://api.github.com/users/zephraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephraph/subscriptions","organizations_url":"https://api.github.com/users/zephraph/orgs","repos_url":"https://api.github.com/users/zephraph/repos","events_url":"https://api.github.com/users/zephraph/events{/privacy}","received_events_url":"https://api.github.com/users/zephraph/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"damassi","id":236943,"node_id":"MDQ6VXNlcjIzNjk0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/236943?v=4","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/reaction/pulls/809/commits","review_comments_url":"https://api.github.com/repos/artsy/reaction/pulls/809/comments","review_comment_url":"https://api.github.com/repos/artsy/reaction/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/reaction/issues/809/comments","statuses_url":"https://api.github.com/repos/artsy/reaction/statuses/910030e43f726d8ed1111ed213732ec3198ffdd2","head":{"label":"oxaudo:aapage","ref":"aapage","sha":"910030e43f726d8ed1111ed213732ec3198ffdd2","user":{"login":"oxaudo","id":437156,"node_id":"MDQ6VXNlcjQzNzE1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/437156?v=4","gravatar_id":"","url":"https://api.github.com/users/oxaudo","html_url":"https://github.com/oxaudo","followers_url":"https://api.github.com/users/oxaudo/followers","following_url":"https://api.github.com/users/oxaudo/following{/other_user}","gists_url":"https://api.github.com/users/oxaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/oxaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxaudo/subscriptions","organizations_url":"https://api.github.com/users/oxaudo/orgs","repos_url":"https://api.github.com/users/oxaudo/repos","events_url":"https://api.github.com/users/oxaudo/events{/privacy}","received_events_url":"https://api.github.com/users/oxaudo/received_events","type":"User","site_admin":false},"repo":{"id":124110738,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQxMTA3Mzg=","name":"reaction","full_name":"oxaudo/reaction","owner":{"login":"oxaudo","id":437156,"node_id":"MDQ6VXNlcjQzNzE1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/437156?v=4","gravatar_id":"","url":"https://api.github.com/users/oxaudo","html_url":"https://github.com/oxaudo","followers_url":"https://api.github.com/users/oxaudo/followers","following_url":"https://api.github.com/users/oxaudo/following{/other_user}","gists_url":"https://api.github.com/users/oxaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/oxaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxaudo/subscriptions","organizations_url":"https://api.github.com/users/oxaudo/orgs","repos_url":"https://api.github.com/users/oxaudo/repos","events_url":"https://api.github.com/users/oxaudo/events{/privacy}","received_events_url":"https://api.github.com/users/oxaudo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oxaudo/reaction","description":"Artsy’s React Components","fork":true,"url":"https://api.github.com/repos/oxaudo/reaction","forks_url":"https://api.github.com/repos/oxaudo/reaction/forks","keys_url":"https://api.github.com/repos/oxaudo/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oxaudo/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oxaudo/reaction/teams","hooks_url":"https://api.github.com/repos/oxaudo/reaction/hooks","issue_events_url":"https://api.github.com/repos/oxaudo/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/oxaudo/reaction/events","assignees_url":"https://api.github.com/repos/oxaudo/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/oxaudo/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/oxaudo/reaction/tags","blobs_url":"https://api.github.com/repos/oxaudo/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oxaudo/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oxaudo/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/oxaudo/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oxaudo/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/oxaudo/reaction/languages","stargazers_url":"https://api.github.com/repos/oxaudo/reaction/stargazers","contributors_url":"https://api.github.com/repos/oxaudo/reaction/contributors","subscribers_url":"https://api.github.com/repos/oxaudo/reaction/subscribers","subscription_url":"https://api.github.com/repos/oxaudo/reaction/subscription","commits_url":"https://api.github.com/repos/oxaudo/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/oxaudo/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/oxaudo/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/oxaudo/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/oxaudo/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/oxaudo/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oxaudo/reaction/merges","archive_url":"https://api.github.com/repos/oxaudo/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oxaudo/reaction/downloads","issues_url":"https://api.github.com/repos/oxaudo/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/oxaudo/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/oxaudo/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/oxaudo/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oxaudo/reaction/labels{/name}","releases_url":"https://api.github.com/repos/oxaudo/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/oxaudo/reaction/deployments","created_at":"2018-03-06T17:03:10Z","updated_at":"2018-03-06T17:03:12Z","pushed_at":"2018-06-15T03:13:27Z","git_url":"git://github.com/oxaudo/reaction.git","ssh_url":"git@github.com:oxaudo/reaction.git","clone_url":"https://github.com/oxaudo/reaction.git","svn_url":"https://github.com/oxaudo/reaction","homepage":"https://artsy.github.io/reaction","size":13510,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"3c57acabc594bacc0545995e3dce1c5d5b6ceb93","user":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":81253735,"node_id":"MDEwOlJlcG9zaXRvcnk4MTI1MzczNQ==","name":"reaction","full_name":"artsy/reaction","owner":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/reaction","description":"Artsy’s React Components","fork":false,"url":"https://api.github.com/repos/artsy/reaction","forks_url":"https://api.github.com/repos/artsy/reaction/forks","keys_url":"https://api.github.com/repos/artsy/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/reaction/teams","hooks_url":"https://api.github.com/repos/artsy/reaction/hooks","issue_events_url":"https://api.github.com/repos/artsy/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/reaction/events","assignees_url":"https://api.github.com/repos/artsy/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/reaction/tags","blobs_url":"https://api.github.com/repos/artsy/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/reaction/languages","stargazers_url":"https://api.github.com/repos/artsy/reaction/stargazers","contributors_url":"https://api.github.com/repos/artsy/reaction/contributors","subscribers_url":"https://api.github.com/repos/artsy/reaction/subscribers","subscription_url":"https://api.github.com/repos/artsy/reaction/subscription","commits_url":"https://api.github.com/repos/artsy/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/reaction/merges","archive_url":"https://api.github.com/repos/artsy/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/reaction/downloads","issues_url":"https://api.github.com/repos/artsy/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/reaction/labels{/name}","releases_url":"https://api.github.com/repos/artsy/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/reaction/deployments","created_at":"2017-02-07T21:00:51Z","updated_at":"2018-06-15T05:05:45Z","pushed_at":"2018-06-15T05:15:18Z","git_url":"git://github.com/artsy/reaction.git","ssh_url":"git@github.com:artsy/reaction.git","clone_url":"https://github.com/artsy/reaction.git","svn_url":"https://github.com/artsy/reaction","homepage":"https://artsy.github.io/reaction","size":15085,"stargazers_count":112,"watchers_count":112,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":26,"open_issues":23,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/reaction/pulls/809"},"html":{"href":"https://github.com/artsy/reaction/pull/809"},"issue":{"href":"https://api.github.com/repos/artsy/reaction/issues/809"},"comments":{"href":"https://api.github.com/repos/artsy/reaction/issues/809/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/reaction/pulls/809/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/reaction/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/reaction/pulls/809/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/reaction/statuses/910030e43f726d8ed1111ed213732ec3198ffdd2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alloy"}}