{"action":"created","comment":{"url":"https://api.github.com/repos/transferwise/components/pulls/comments/186713562","pull_request_review_id":118345044,"id":186713562,"diff_hunk":"@@ -0,0 +1,222 @@\n+import React, { Component } from 'react';\n+import Types from 'prop-types';\n+import Select from '../select';\n+import './MoneyInput.less';\n+\n+import { formatNumber, parseNumber } from './numberFormatting';\n+\n+const Currency = Types.shape({\n+  header: Types.string,\n+  value: Types.string,\n+  label: Types.string,\n+  currency: Types.string,\n+  note: Types.string,\n+  searchable: Types.string,\n+});\n+\n+class MoneyInput extends Component {\n+  static propTypes = {\n+    id: Types.string,\n+    currencies: Types.arrayOf(Currency).isRequired,\n+    selectedCurrency: Currency.isRequired,\n+    onCurrencyChange: Types.func.isRequired,","path":"src/moneyInput/MoneyInput.js","position":22,"original_position":22,"commit_id":"02875dbbb71e68c75ffa81ae2015faf0edde87af","original_commit_id":"02875dbbb71e68c75ffa81ae2015faf0edde87af","user":{"login":"coolsebz","id":2954356,"avatar_url":"https://avatars3.githubusercontent.com/u/2954356?v=4","gravatar_id":"","url":"https://api.github.com/users/coolsebz","html_url":"https://github.com/coolsebz","followers_url":"https://api.github.com/users/coolsebz/followers","following_url":"https://api.github.com/users/coolsebz/following{/other_user}","gists_url":"https://api.github.com/users/coolsebz/gists{/gist_id}","starred_url":"https://api.github.com/users/coolsebz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolsebz/subscriptions","organizations_url":"https://api.github.com/users/coolsebz/orgs","repos_url":"https://api.github.com/users/coolsebz/repos","events_url":"https://api.github.com/users/coolsebz/events{/privacy}","received_events_url":"https://api.github.com/users/coolsebz/received_events","type":"User","site_admin":false},"body":"yeah would make sense to remove it then if the intended use is with a falsy onAmountChange 👌 ","created_at":"2018-05-08T12:44:32Z","updated_at":"2018-05-08T12:44:32Z","html_url":"https://github.com/transferwise/components/pull/40#discussion_r186713562","pull_request_url":"https://api.github.com/repos/transferwise/components/pulls/40","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/transferwise/components/pulls/comments/186713562"},"html":{"href":"https://github.com/transferwise/components/pull/40#discussion_r186713562"},"pull_request":{"href":"https://api.github.com/repos/transferwise/components/pulls/40"}},"in_reply_to_id":186686175},"pull_request":{"url":"https://api.github.com/repos/transferwise/components/pulls/40","id":186007085,"html_url":"https://github.com/transferwise/components/pull/40","diff_url":"https://github.com/transferwise/components/pull/40.diff","patch_url":"https://github.com/transferwise/components/pull/40.patch","issue_url":"https://api.github.com/repos/transferwise/components/issues/40","number":40,"state":"open","locked":false,"title":"Adds a new money input component.","user":{"login":"Tankenstein","id":9271565,"avatar_url":"https://avatars2.githubusercontent.com/u/9271565?v=4","gravatar_id":"","url":"https://api.github.com/users/Tankenstein","html_url":"https://github.com/Tankenstein","followers_url":"https://api.github.com/users/Tankenstein/followers","following_url":"https://api.github.com/users/Tankenstein/following{/other_user}","gists_url":"https://api.github.com/users/Tankenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/Tankenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tankenstein/subscriptions","organizations_url":"https://api.github.com/users/Tankenstein/orgs","repos_url":"https://api.github.com/users/Tankenstein/repos","events_url":"https://api.github.com/users/Tankenstein/events{/privacy}","received_events_url":"https://api.github.com/users/Tankenstein/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/9271565/39634480-9a40aff0-4fc3-11e8-8685-f5550f6324b0.png)\r\n\r\nAlso adds a \"separator\" element and a bunch of dropdown utilities to the select component.\r\n","created_at":"2018-05-04T14:52:17Z","updated_at":"2018-05-08T12:44:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c493619177f0bd13b479140083b357fa07403c19","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/transferwise/components/pulls/40/commits","review_comments_url":"https://api.github.com/repos/transferwise/components/pulls/40/comments","review_comment_url":"https://api.github.com/repos/transferwise/components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/transferwise/components/issues/40/comments","statuses_url":"https://api.github.com/repos/transferwise/components/statuses/02875dbbb71e68c75ffa81ae2015faf0edde87af","head":{"label":"transferwise:currency-input","ref":"currency-input","sha":"02875dbbb71e68c75ffa81ae2015faf0edde87af","user":{"login":"transferwise","id":9465219,"avatar_url":"https://avatars3.githubusercontent.com/u/9465219?v=4","gravatar_id":"","url":"https://api.github.com/users/transferwise","html_url":"https://github.com/transferwise","followers_url":"https://api.github.com/users/transferwise/followers","following_url":"https://api.github.com/users/transferwise/following{/other_user}","gists_url":"https://api.github.com/users/transferwise/gists{/gist_id}","starred_url":"https://api.github.com/users/transferwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transferwise/subscriptions","organizations_url":"https://api.github.com/users/transferwise/orgs","repos_url":"https://api.github.com/users/transferwise/repos","events_url":"https://api.github.com/users/transferwise/events{/privacy}","received_events_url":"https://api.github.com/users/transferwise/received_events","type":"Organization","site_admin":false},"repo":{"id":69026353,"name":"components","full_name":"transferwise/components","owner":{"login":"transferwise","id":9465219,"avatar_url":"https://avatars3.githubusercontent.com/u/9465219?v=4","gravatar_id":"","url":"https://api.github.com/users/transferwise","html_url":"https://github.com/transferwise","followers_url":"https://api.github.com/users/transferwise/followers","following_url":"https://api.github.com/users/transferwise/following{/other_user}","gists_url":"https://api.github.com/users/transferwise/gists{/gist_id}","starred_url":"https://api.github.com/users/transferwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transferwise/subscriptions","organizations_url":"https://api.github.com/users/transferwise/orgs","repos_url":"https://api.github.com/users/transferwise/repos","events_url":"https://api.github.com/users/transferwise/events{/privacy}","received_events_url":"https://api.github.com/users/transferwise/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/transferwise/components","description":"Common react components in TransferWise","fork":false,"url":"https://api.github.com/repos/transferwise/components","forks_url":"https://api.github.com/repos/transferwise/components/forks","keys_url":"https://api.github.com/repos/transferwise/components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/transferwise/components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/transferwise/components/teams","hooks_url":"https://api.github.com/repos/transferwise/components/hooks","issue_events_url":"https://api.github.com/repos/transferwise/components/issues/events{/number}","events_url":"https://api.github.com/repos/transferwise/components/events","assignees_url":"https://api.github.com/repos/transferwise/components/assignees{/user}","branches_url":"https://api.github.com/repos/transferwise/components/branches{/branch}","tags_url":"https://api.github.com/repos/transferwise/components/tags","blobs_url":"https://api.github.com/repos/transferwise/components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/transferwise/components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/transferwise/components/git/refs{/sha}","trees_url":"https://api.github.com/repos/transferwise/components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/transferwise/components/statuses/{sha}","languages_url":"https://api.github.com/repos/transferwise/components/languages","stargazers_url":"https://api.github.com/repos/transferwise/components/stargazers","contributors_url":"https://api.github.com/repos/transferwise/components/contributors","subscribers_url":"https://api.github.com/repos/transferwise/components/subscribers","subscription_url":"https://api.github.com/repos/transferwise/components/subscription","commits_url":"https://api.github.com/repos/transferwise/components/commits{/sha}","git_commits_url":"https://api.github.com/repos/transferwise/components/git/commits{/sha}","comments_url":"https://api.github.com/repos/transferwise/components/comments{/number}","issue_comment_url":"https://api.github.com/repos/transferwise/components/issues/comments{/number}","contents_url":"https://api.github.com/repos/transferwise/components/contents/{+path}","compare_url":"https://api.github.com/repos/transferwise/components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/transferwise/components/merges","archive_url":"https://api.github.com/repos/transferwise/components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/transferwise/components/downloads","issues_url":"https://api.github.com/repos/transferwise/components/issues{/number}","pulls_url":"https://api.github.com/repos/transferwise/components/pulls{/number}","milestones_url":"https://api.github.com/repos/transferwise/components/milestones{/number}","notifications_url":"https://api.github.com/repos/transferwise/components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/transferwise/components/labels{/name}","releases_url":"https://api.github.com/repos/transferwise/components/releases{/id}","deployments_url":"https://api.github.com/repos/transferwise/components/deployments","created_at":"2016-09-23T13:17:02Z","updated_at":"2018-05-05T13:39:18Z","pushed_at":"2018-05-08T07:57:50Z","git_url":"git://github.com/transferwise/components.git","ssh_url":"git@github.com:transferwise/components.git","clone_url":"https://github.com/transferwise/components.git","svn_url":"https://github.com/transferwise/components","homepage":"https://transferwise.github.io/components/","size":6022,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":3,"watchers":5,"default_branch":"master"}},"base":{"label":"transferwise:master","ref":"master","sha":"cb069508c1c6e8b278789c03bd6a344308242c46","user":{"login":"transferwise","id":9465219,"avatar_url":"https://avatars3.githubusercontent.com/u/9465219?v=4","gravatar_id":"","url":"https://api.github.com/users/transferwise","html_url":"https://github.com/transferwise","followers_url":"https://api.github.com/users/transferwise/followers","following_url":"https://api.github.com/users/transferwise/following{/other_user}","gists_url":"https://api.github.com/users/transferwise/gists{/gist_id}","starred_url":"https://api.github.com/users/transferwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transferwise/subscriptions","organizations_url":"https://api.github.com/users/transferwise/orgs","repos_url":"https://api.github.com/users/transferwise/repos","events_url":"https://api.github.com/users/transferwise/events{/privacy}","received_events_url":"https://api.github.com/users/transferwise/received_events","type":"Organization","site_admin":false},"repo":{"id":69026353,"name":"components","full_name":"transferwise/components","owner":{"login":"transferwise","id":9465219,"avatar_url":"https://avatars3.githubusercontent.com/u/9465219?v=4","gravatar_id":"","url":"https://api.github.com/users/transferwise","html_url":"https://github.com/transferwise","followers_url":"https://api.github.com/users/transferwise/followers","following_url":"https://api.github.com/users/transferwise/following{/other_user}","gists_url":"https://api.github.com/users/transferwise/gists{/gist_id}","starred_url":"https://api.github.com/users/transferwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transferwise/subscriptions","organizations_url":"https://api.github.com/users/transferwise/orgs","repos_url":"https://api.github.com/users/transferwise/repos","events_url":"https://api.github.com/users/transferwise/events{/privacy}","received_events_url":"https://api.github.com/users/transferwise/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/transferwise/components","description":"Common react components in TransferWise","fork":false,"url":"https://api.github.com/repos/transferwise/components","forks_url":"https://api.github.com/repos/transferwise/components/forks","keys_url":"https://api.github.com/repos/transferwise/components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/transferwise/components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/transferwise/components/teams","hooks_url":"https://api.github.com/repos/transferwise/components/hooks","issue_events_url":"https://api.github.com/repos/transferwise/components/issues/events{/number}","events_url":"https://api.github.com/repos/transferwise/components/events","assignees_url":"https://api.github.com/repos/transferwise/components/assignees{/user}","branches_url":"https://api.github.com/repos/transferwise/components/branches{/branch}","tags_url":"https://api.github.com/repos/transferwise/components/tags","blobs_url":"https://api.github.com/repos/transferwise/components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/transferwise/components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/transferwise/components/git/refs{/sha}","trees_url":"https://api.github.com/repos/transferwise/components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/transferwise/components/statuses/{sha}","languages_url":"https://api.github.com/repos/transferwise/components/languages","stargazers_url":"https://api.github.com/repos/transferwise/components/stargazers","contributors_url":"https://api.github.com/repos/transferwise/components/contributors","subscribers_url":"https://api.github.com/repos/transferwise/components/subscribers","subscription_url":"https://api.github.com/repos/transferwise/components/subscription","commits_url":"https://api.github.com/repos/transferwise/components/commits{/sha}","git_commits_url":"https://api.github.com/repos/transferwise/components/git/commits{/sha}","comments_url":"https://api.github.com/repos/transferwise/components/comments{/number}","issue_comment_url":"https://api.github.com/repos/transferwise/components/issues/comments{/number}","contents_url":"https://api.github.com/repos/transferwise/components/contents/{+path}","compare_url":"https://api.github.com/repos/transferwise/components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/transferwise/components/merges","archive_url":"https://api.github.com/repos/transferwise/components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/transferwise/components/downloads","issues_url":"https://api.github.com/repos/transferwise/components/issues{/number}","pulls_url":"https://api.github.com/repos/transferwise/components/pulls{/number}","milestones_url":"https://api.github.com/repos/transferwise/components/milestones{/number}","notifications_url":"https://api.github.com/repos/transferwise/components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/transferwise/components/labels{/name}","releases_url":"https://api.github.com/repos/transferwise/components/releases{/id}","deployments_url":"https://api.github.com/repos/transferwise/components/deployments","created_at":"2016-09-23T13:17:02Z","updated_at":"2018-05-05T13:39:18Z","pushed_at":"2018-05-08T07:57:50Z","git_url":"git://github.com/transferwise/components.git","ssh_url":"git@github.com:transferwise/components.git","clone_url":"https://github.com/transferwise/components.git","svn_url":"https://github.com/transferwise/components","homepage":"https://transferwise.github.io/components/","size":6022,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/transferwise/components/pulls/40"},"html":{"href":"https://github.com/transferwise/components/pull/40"},"issue":{"href":"https://api.github.com/repos/transferwise/components/issues/40"},"comments":{"href":"https://api.github.com/repos/transferwise/components/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/transferwise/components/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/transferwise/components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/transferwise/components/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/transferwise/components/statuses/02875dbbb71e68c75ffa81ae2015faf0edde87af"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"coolsebz"}}