{"action":"created","comment":{"url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/comments/88339731","pull_request_review_id":8916936,"id":88339731,"diff_hunk":"@@ -2,20 +2,68 @@\n \n import React from 'react';\n import ImagePicker from '../../../src/components/ImagePicker';\n+import TextInput from '../../../src/components/TextInput';\n import Code from '../../../src/components/Code';\n \n-export default function ImagePickerExamples() {\n-  return (\n-    <section className=\"_full-width-row\" id=\"ImagePicker\">\n-      <div className=\"_container _container_large\">\n-        <h2 className=\"base--h2\">ImagePicker</h2>\n-        <ImagePicker />\n-        <Code language=\"html\">\n+export default React.createClass({\n+\n+  getInitialState() {\n+    return {\n+      urlError: null,\n+      fileError: null,\n+      error: null,\n+    };\n+  },\n+\n+  render() {\n+    return (\n+      <section className=\"_full-width-row\" id=\"ImagePicker\">\n+        <div className=\"_container _container_large\">\n+          <h2 className=\"base--h2\">ImagePicker</h2>\n+          <ImagePicker />\n+          <Code language=\"html\">\n {'<ImagePicker />'}","path":"example/src/components/ImagePickerExamples.js","position":31,"original_position":31,"commit_id":"8587025bac6aee533b8c872b8834876637074c14","original_commit_id":"8587025bac6aee533b8c872b8834876637074c14","user":{"login":"nfriedly","id":114976,"avatar_url":"https://avatars.githubusercontent.com/u/114976?v=3","gravatar_id":"","url":"https://api.github.com/users/nfriedly","html_url":"https://github.com/nfriedly","followers_url":"https://api.github.com/users/nfriedly/followers","following_url":"https://api.github.com/users/nfriedly/following{/other_user}","gists_url":"https://api.github.com/users/nfriedly/gists{/gist_id}","starred_url":"https://api.github.com/users/nfriedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfriedly/subscriptions","organizations_url":"https://api.github.com/users/nfriedly/orgs","repos_url":"https://api.github.com/users/nfriedly/repos","events_url":"https://api.github.com/users/nfriedly/events{/privacy}","received_events_url":"https://api.github.com/users/nfriedly/received_events","type":"User","site_admin":false},"body":"I think the example should probably include enough props to make it useful, so maybe `onClickTile`, `onDrop`, and `onUrlInputChange` with each just doing a console.log.","created_at":"2016-11-16T21:53:25Z","updated_at":"2016-11-16T21:54:22Z","html_url":"https://github.com/watson-developer-cloud/react-components/pull/29#discussion_r88339731","pull_request_url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/comments/88339731"},"html":{"href":"https://github.com/watson-developer-cloud/react-components/pull/29#discussion_r88339731"},"pull_request":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29","id":93858808,"html_url":"https://github.com/watson-developer-cloud/react-components/pull/29","diff_url":"https://github.com/watson-developer-cloud/react-components/pull/29.diff","patch_url":"https://github.com/watson-developer-cloud/react-components/pull/29.patch","issue_url":"https://api.github.com/repos/watson-developer-cloud/react-components/issues/29","number":29,"state":"open","locked":false,"title":"Imagepicker2","user":{"login":"jzhang300","id":1449523,"avatar_url":"https://avatars.githubusercontent.com/u/1449523?v=3","gravatar_id":"","url":"https://api.github.com/users/jzhang300","html_url":"https://github.com/jzhang300","followers_url":"https://api.github.com/users/jzhang300/followers","following_url":"https://api.github.com/users/jzhang300/following{/other_user}","gists_url":"https://api.github.com/users/jzhang300/gists{/gist_id}","starred_url":"https://api.github.com/users/jzhang300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzhang300/subscriptions","organizations_url":"https://api.github.com/users/jzhang300/orgs","repos_url":"https://api.github.com/users/jzhang300/repos","events_url":"https://api.github.com/users/jzhang300/events{/privacy}","received_events_url":"https://api.github.com/users/jzhang300/received_events","type":"User","site_admin":false},"body":"* add arrow box to image picker\n* move imagepicker styles to its own component\n* rename image picker styles to `image-picker`\n* add new image picker example showcasing error messages","created_at":"2016-11-15T22:10:07Z","updated_at":"2016-11-16T21:54:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c14dfbf61be6a30e439705b3f6ab766f3a19c610","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29/commits","review_comments_url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29/comments","review_comment_url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/watson-developer-cloud/react-components/issues/29/comments","statuses_url":"https://api.github.com/repos/watson-developer-cloud/react-components/statuses/8587025bac6aee533b8c872b8834876637074c14","head":{"label":"jzhang300:imagepicker2","ref":"imagepicker2","sha":"8587025bac6aee533b8c872b8834876637074c14","user":{"login":"jzhang300","id":1449523,"avatar_url":"https://avatars.githubusercontent.com/u/1449523?v=3","gravatar_id":"","url":"https://api.github.com/users/jzhang300","html_url":"https://github.com/jzhang300","followers_url":"https://api.github.com/users/jzhang300/followers","following_url":"https://api.github.com/users/jzhang300/following{/other_user}","gists_url":"https://api.github.com/users/jzhang300/gists{/gist_id}","starred_url":"https://api.github.com/users/jzhang300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzhang300/subscriptions","organizations_url":"https://api.github.com/users/jzhang300/orgs","repos_url":"https://api.github.com/users/jzhang300/repos","events_url":"https://api.github.com/users/jzhang300/events{/privacy}","received_events_url":"https://api.github.com/users/jzhang300/received_events","type":"User","site_admin":false},"repo":{"id":70642077,"name":"react-components","full_name":"jzhang300/react-components","owner":{"login":"jzhang300","id":1449523,"avatar_url":"https://avatars.githubusercontent.com/u/1449523?v=3","gravatar_id":"","url":"https://api.github.com/users/jzhang300","html_url":"https://github.com/jzhang300","followers_url":"https://api.github.com/users/jzhang300/followers","following_url":"https://api.github.com/users/jzhang300/following{/other_user}","gists_url":"https://api.github.com/users/jzhang300/gists{/gist_id}","starred_url":"https://api.github.com/users/jzhang300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzhang300/subscriptions","organizations_url":"https://api.github.com/users/jzhang300/orgs","repos_url":"https://api.github.com/users/jzhang300/repos","events_url":"https://api.github.com/users/jzhang300/events{/privacy}","received_events_url":"https://api.github.com/users/jzhang300/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jzhang300/react-components","description":"React-based UI components used in Watson demos. Builds on top of our SASS UI Components library.","fork":true,"url":"https://api.github.com/repos/jzhang300/react-components","forks_url":"https://api.github.com/repos/jzhang300/react-components/forks","keys_url":"https://api.github.com/repos/jzhang300/react-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jzhang300/react-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jzhang300/react-components/teams","hooks_url":"https://api.github.com/repos/jzhang300/react-components/hooks","issue_events_url":"https://api.github.com/repos/jzhang300/react-components/issues/events{/number}","events_url":"https://api.github.com/repos/jzhang300/react-components/events","assignees_url":"https://api.github.com/repos/jzhang300/react-components/assignees{/user}","branches_url":"https://api.github.com/repos/jzhang300/react-components/branches{/branch}","tags_url":"https://api.github.com/repos/jzhang300/react-components/tags","blobs_url":"https://api.github.com/repos/jzhang300/react-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jzhang300/react-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jzhang300/react-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/jzhang300/react-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jzhang300/react-components/statuses/{sha}","languages_url":"https://api.github.com/repos/jzhang300/react-components/languages","stargazers_url":"https://api.github.com/repos/jzhang300/react-components/stargazers","contributors_url":"https://api.github.com/repos/jzhang300/react-components/contributors","subscribers_url":"https://api.github.com/repos/jzhang300/react-components/subscribers","subscription_url":"https://api.github.com/repos/jzhang300/react-components/subscription","commits_url":"https://api.github.com/repos/jzhang300/react-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/jzhang300/react-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/jzhang300/react-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/jzhang300/react-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/jzhang300/react-components/contents/{+path}","compare_url":"https://api.github.com/repos/jzhang300/react-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jzhang300/react-components/merges","archive_url":"https://api.github.com/repos/jzhang300/react-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jzhang300/react-components/downloads","issues_url":"https://api.github.com/repos/jzhang300/react-components/issues{/number}","pulls_url":"https://api.github.com/repos/jzhang300/react-components/pulls{/number}","milestones_url":"https://api.github.com/repos/jzhang300/react-components/milestones{/number}","notifications_url":"https://api.github.com/repos/jzhang300/react-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jzhang300/react-components/labels{/name}","releases_url":"https://api.github.com/repos/jzhang300/react-components/releases{/id}","deployments_url":"https://api.github.com/repos/jzhang300/react-components/deployments","created_at":"2016-10-11T22:55:20Z","updated_at":"2016-10-11T22:55:22Z","pushed_at":"2016-11-16T21:26:56Z","git_url":"git://github.com/jzhang300/react-components.git","ssh_url":"git@github.com:jzhang300/react-components.git","clone_url":"https://github.com/jzhang300/react-components.git","svn_url":"https://github.com/jzhang300/react-components","homepage":"https://watson-developer-cloud.github.io/react-components/","size":2022,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"watson-developer-cloud:master","ref":"master","sha":"26bd1803c09af633ac059376d6efd862401be11c","user":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":68855750,"name":"react-components","full_name":"watson-developer-cloud/react-components","owner":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/watson-developer-cloud/react-components","description":"React-based UI components used in Watson demos. Builds on top of our SASS UI Components library.","fork":false,"url":"https://api.github.com/repos/watson-developer-cloud/react-components","forks_url":"https://api.github.com/repos/watson-developer-cloud/react-components/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/react-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/react-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/react-components/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/react-components/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/react-components/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/react-components/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/react-components/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/react-components/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/react-components/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/react-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/react-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/react-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/react-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/react-components/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/react-components/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/react-components/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/react-components/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/react-components/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/react-components/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/react-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/react-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/react-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/react-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/react-components/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/react-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/react-components/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/react-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/react-components/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/react-components/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/react-components/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/react-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/react-components/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/react-components/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/react-components/deployments","created_at":"2016-09-21T20:38:34Z","updated_at":"2016-10-26T20:57:13Z","pushed_at":"2016-11-16T21:27:02Z","git_url":"git://github.com/watson-developer-cloud/react-components.git","ssh_url":"git@github.com:watson-developer-cloud/react-components.git","clone_url":"https://github.com/watson-developer-cloud/react-components.git","svn_url":"https://github.com/watson-developer-cloud/react-components","homepage":"https://watson-developer-cloud.github.io/react-components/","size":2204,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29"},"html":{"href":"https://github.com/watson-developer-cloud/react-components/pull/29"},"issue":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/issues/29"},"comments":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/watson-developer-cloud/react-components/statuses/8587025bac6aee533b8c872b8834876637074c14"}}}}
{"actor":{"display_login":"nfriedly"}}