{"action":"created","comment":{"url":"https://api.github.com/repos/pagarme/pilot/pulls/comments/186871131","pull_request_review_id":118537201,"id":186871131,"diff_hunk":"@@ -0,0 +1,259 @@\n+import React, { Component } from 'react'\n+import PropTypes from 'prop-types'\n+import moment from 'moment'\n+import {\n+  Button,\n+  Card,\n+  CardActions,\n+  CardContent,\n+  CardSection,\n+  Col,\n+  FormInput,\n+  Grid,\n+  Row,\n+} from 'former-kit'\n+import {\n+  always,\n+  apply,\n+  cond,\n+  equals,\n+  gt,\n+  gte,\n+  juxt,\n+  lt,\n+  pipe,\n+  prop,\n+  propSatisfies,\n+} from 'ramda'\n+import TotalDisplay from '../../../components/TotalDisplay'\n+import DataDisplay from '../../../components/DataDisplay'\n+import formatCurrency from '../../../formatters/currency'\n+import style from './style.css'\n+\n+const chooseTransferCardColor = cond([\n+  [Number.isNaN, always('#757575')],\n+  [lt(0), always('#37cc9a')],\n+  [gte(0), always('#ff796f')],\n+])\n+\n+const showErrorMessage = cond([\n+  [\n+    propSatisfies(gt(0), 'amount'),\n+    always('Valor a ser transferido está negativo!'),\n+  ],\n+  [\n+    pipe(\n+      juxt([prop('requested'), prop('maximum')]),\n+      apply(gt),\n+      equals(true)\n+    ),\n+    always('Valor requerido maior que o máximo'),","path":"packages/pilot/src/containers/Withdraw/Form/index.js","position":50,"original_position":50,"commit_id":"9d82c925d62b5940881f8613f7b21c1c9ed96218","original_commit_id":"9d82c925d62b5940881f8613f7b21c1c9ed96218","user":{"login":"Deivis","id":1773766,"avatar_url":"https://avatars3.githubusercontent.com/u/1773766?v=4","gravatar_id":"","url":"https://api.github.com/users/Deivis","html_url":"https://github.com/Deivis","followers_url":"https://api.github.com/users/Deivis/followers","following_url":"https://api.github.com/users/Deivis/following{/other_user}","gists_url":"https://api.github.com/users/Deivis/gists{/gist_id}","starred_url":"https://api.github.com/users/Deivis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deivis/subscriptions","organizations_url":"https://api.github.com/users/Deivis/orgs","repos_url":"https://api.github.com/users/Deivis/repos","events_url":"https://api.github.com/users/Deivis/events{/privacy}","received_events_url":"https://api.github.com/users/Deivis/received_events","type":"User","site_admin":false},"body":"Traduções como a anterior","created_at":"2018-05-08T21:18:53Z","updated_at":"2018-05-08T21:28:26Z","html_url":"https://github.com/pagarme/pilot/pull/597#discussion_r186871131","pull_request_url":"https://api.github.com/repos/pagarme/pilot/pulls/597","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pagarme/pilot/pulls/comments/186871131"},"html":{"href":"https://github.com/pagarme/pilot/pull/597#discussion_r186871131"},"pull_request":{"href":"https://api.github.com/repos/pagarme/pilot/pulls/597"}}},"pull_request":{"url":"https://api.github.com/repos/pagarme/pilot/pulls/597","id":186751997,"html_url":"https://github.com/pagarme/pilot/pull/597","diff_url":"https://github.com/pagarme/pilot/pull/597.diff","patch_url":"https://github.com/pagarme/pilot/pull/597.patch","issue_url":"https://api.github.com/repos/pagarme/pilot/issues/597","number":597,"state":"open","locked":false,"title":"withdraw: add form","user":{"login":"LeoNero","id":7756101,"avatar_url":"https://avatars1.githubusercontent.com/u/7756101?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoNero","html_url":"https://github.com/LeoNero","followers_url":"https://api.github.com/users/LeoNero/followers","following_url":"https://api.github.com/users/LeoNero/following{/other_user}","gists_url":"https://api.github.com/users/LeoNero/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoNero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoNero/subscriptions","organizations_url":"https://api.github.com/users/LeoNero/orgs","repos_url":"https://api.github.com/users/LeoNero/repos","events_url":"https://api.github.com/users/LeoNero/events{/privacy}","received_events_url":"https://api.github.com/users/LeoNero/received_events","type":"User","site_admin":false},"body":"Closes #542","created_at":"2018-05-08T20:49:38Z","updated_at":"2018-05-08T21:28:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6971be8fb3e5a9bead29a7c70b5ceceadcf12162","assignee":{"login":"LeoNero","id":7756101,"avatar_url":"https://avatars1.githubusercontent.com/u/7756101?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoNero","html_url":"https://github.com/LeoNero","followers_url":"https://api.github.com/users/LeoNero/followers","following_url":"https://api.github.com/users/LeoNero/following{/other_user}","gists_url":"https://api.github.com/users/LeoNero/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoNero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoNero/subscriptions","organizations_url":"https://api.github.com/users/LeoNero/orgs","repos_url":"https://api.github.com/users/LeoNero/repos","events_url":"https://api.github.com/users/LeoNero/events{/privacy}","received_events_url":"https://api.github.com/users/LeoNero/received_events","type":"User","site_admin":false},"assignees":[{"login":"LeoNero","id":7756101,"avatar_url":"https://avatars1.githubusercontent.com/u/7756101?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoNero","html_url":"https://github.com/LeoNero","followers_url":"https://api.github.com/users/LeoNero/followers","following_url":"https://api.github.com/users/LeoNero/following{/other_user}","gists_url":"https://api.github.com/users/LeoNero/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoNero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoNero/subscriptions","organizations_url":"https://api.github.com/users/LeoNero/orgs","repos_url":"https://api.github.com/users/LeoNero/repos","events_url":"https://api.github.com/users/LeoNero/events{/privacy}","received_events_url":"https://api.github.com/users/LeoNero/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":670269986,"url":"https://api.github.com/repos/pagarme/pilot/labels/devs","name":"devs","color":"6210e8","default":false},{"id":891329682,"url":"https://api.github.com/repos/pagarme/pilot/labels/pilot","name":"pilot","color":"3f36ed","default":false},{"id":722842150,"url":"https://api.github.com/repos/pagarme/pilot/labels/review-needed","name":"review-needed","color":"fcec0f","default":false}],"milestone":{"url":"https://api.github.com/repos/pagarme/pilot/milestones/29","html_url":"https://github.com/pagarme/pilot/milestone/29","labels_url":"https://api.github.com/repos/pagarme/pilot/milestones/29/labels","id":3226421,"number":29,"title":"Antecipação","description":"","creator":{"login":"vitorvmiguel","id":24230714,"avatar_url":"https://avatars2.githubusercontent.com/u/24230714?v=4","gravatar_id":"","url":"https://api.github.com/users/vitorvmiguel","html_url":"https://github.com/vitorvmiguel","followers_url":"https://api.github.com/users/vitorvmiguel/followers","following_url":"https://api.github.com/users/vitorvmiguel/following{/other_user}","gists_url":"https://api.github.com/users/vitorvmiguel/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorvmiguel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorvmiguel/subscriptions","organizations_url":"https://api.github.com/users/vitorvmiguel/orgs","repos_url":"https://api.github.com/users/vitorvmiguel/repos","events_url":"https://api.github.com/users/vitorvmiguel/events{/privacy}","received_events_url":"https://api.github.com/users/vitorvmiguel/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2018-03-28T20:45:57Z","updated_at":"2018-05-08T21:04:02Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/pagarme/pilot/pulls/597/commits","review_comments_url":"https://api.github.com/repos/pagarme/pilot/pulls/597/comments","review_comment_url":"https://api.github.com/repos/pagarme/pilot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pagarme/pilot/issues/597/comments","statuses_url":"https://api.github.com/repos/pagarme/pilot/statuses/9d82c925d62b5940881f8613f7b21c1c9ed96218","head":{"label":"pagarme:add/form-container-withdraw","ref":"add/form-container-withdraw","sha":"9d82c925d62b5940881f8613f7b21c1c9ed96218","user":{"login":"pagarme","id":3846050,"avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"repo":{"id":96902421,"name":"pilot","full_name":"pagarme/pilot","owner":{"login":"pagarme","id":3846050,"avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagarme/pilot","description":":airplane: The next iteration of Pagar.me's Dashboard","fork":false,"url":"https://api.github.com/repos/pagarme/pilot","forks_url":"https://api.github.com/repos/pagarme/pilot/forks","keys_url":"https://api.github.com/repos/pagarme/pilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagarme/pilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagarme/pilot/teams","hooks_url":"https://api.github.com/repos/pagarme/pilot/hooks","issue_events_url":"https://api.github.com/repos/pagarme/pilot/issues/events{/number}","events_url":"https://api.github.com/repos/pagarme/pilot/events","assignees_url":"https://api.github.com/repos/pagarme/pilot/assignees{/user}","branches_url":"https://api.github.com/repos/pagarme/pilot/branches{/branch}","tags_url":"https://api.github.com/repos/pagarme/pilot/tags","blobs_url":"https://api.github.com/repos/pagarme/pilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagarme/pilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagarme/pilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagarme/pilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagarme/pilot/statuses/{sha}","languages_url":"https://api.github.com/repos/pagarme/pilot/languages","stargazers_url":"https://api.github.com/repos/pagarme/pilot/stargazers","contributors_url":"https://api.github.com/repos/pagarme/pilot/contributors","subscribers_url":"https://api.github.com/repos/pagarme/pilot/subscribers","subscription_url":"https://api.github.com/repos/pagarme/pilot/subscription","commits_url":"https://api.github.com/repos/pagarme/pilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagarme/pilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagarme/pilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagarme/pilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagarme/pilot/contents/{+path}","compare_url":"https://api.github.com/repos/pagarme/pilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagarme/pilot/merges","archive_url":"https://api.github.com/repos/pagarme/pilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagarme/pilot/downloads","issues_url":"https://api.github.com/repos/pagarme/pilot/issues{/number}","pulls_url":"https://api.github.com/repos/pagarme/pilot/pulls{/number}","milestones_url":"https://api.github.com/repos/pagarme/pilot/milestones{/number}","notifications_url":"https://api.github.com/repos/pagarme/pilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagarme/pilot/labels{/name}","releases_url":"https://api.github.com/repos/pagarme/pilot/releases{/id}","deployments_url":"https://api.github.com/repos/pagarme/pilot/deployments","created_at":"2017-07-11T14:28:12Z","updated_at":"2018-05-08T19:46:20Z","pushed_at":"2018-05-08T20:57:26Z","git_url":"git://github.com/pagarme/pilot.git","ssh_url":"git@github.com:pagarme/pilot.git","clone_url":"https://github.com/pagarme/pilot.git","svn_url":"https://github.com/pagarme/pilot","homepage":"","size":159437,"stargazers_count":223,"watchers_count":223,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":55,"license":null,"forks":28,"open_issues":55,"watchers":223,"default_branch":"master"}},"base":{"label":"pagarme:feature/withdraw","ref":"feature/withdraw","sha":"5d76b172e87c9b373bb47278004c5a50ff33a1c3","user":{"login":"pagarme","id":3846050,"avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"repo":{"id":96902421,"name":"pilot","full_name":"pagarme/pilot","owner":{"login":"pagarme","id":3846050,"avatar_url":"https://avatars2.githubusercontent.com/u/3846050?v=4","gravatar_id":"","url":"https://api.github.com/users/pagarme","html_url":"https://github.com/pagarme","followers_url":"https://api.github.com/users/pagarme/followers","following_url":"https://api.github.com/users/pagarme/following{/other_user}","gists_url":"https://api.github.com/users/pagarme/gists{/gist_id}","starred_url":"https://api.github.com/users/pagarme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagarme/subscriptions","organizations_url":"https://api.github.com/users/pagarme/orgs","repos_url":"https://api.github.com/users/pagarme/repos","events_url":"https://api.github.com/users/pagarme/events{/privacy}","received_events_url":"https://api.github.com/users/pagarme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagarme/pilot","description":":airplane: The next iteration of Pagar.me's Dashboard","fork":false,"url":"https://api.github.com/repos/pagarme/pilot","forks_url":"https://api.github.com/repos/pagarme/pilot/forks","keys_url":"https://api.github.com/repos/pagarme/pilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagarme/pilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagarme/pilot/teams","hooks_url":"https://api.github.com/repos/pagarme/pilot/hooks","issue_events_url":"https://api.github.com/repos/pagarme/pilot/issues/events{/number}","events_url":"https://api.github.com/repos/pagarme/pilot/events","assignees_url":"https://api.github.com/repos/pagarme/pilot/assignees{/user}","branches_url":"https://api.github.com/repos/pagarme/pilot/branches{/branch}","tags_url":"https://api.github.com/repos/pagarme/pilot/tags","blobs_url":"https://api.github.com/repos/pagarme/pilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagarme/pilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagarme/pilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagarme/pilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagarme/pilot/statuses/{sha}","languages_url":"https://api.github.com/repos/pagarme/pilot/languages","stargazers_url":"https://api.github.com/repos/pagarme/pilot/stargazers","contributors_url":"https://api.github.com/repos/pagarme/pilot/contributors","subscribers_url":"https://api.github.com/repos/pagarme/pilot/subscribers","subscription_url":"https://api.github.com/repos/pagarme/pilot/subscription","commits_url":"https://api.github.com/repos/pagarme/pilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagarme/pilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagarme/pilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagarme/pilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagarme/pilot/contents/{+path}","compare_url":"https://api.github.com/repos/pagarme/pilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagarme/pilot/merges","archive_url":"https://api.github.com/repos/pagarme/pilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagarme/pilot/downloads","issues_url":"https://api.github.com/repos/pagarme/pilot/issues{/number}","pulls_url":"https://api.github.com/repos/pagarme/pilot/pulls{/number}","milestones_url":"https://api.github.com/repos/pagarme/pilot/milestones{/number}","notifications_url":"https://api.github.com/repos/pagarme/pilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagarme/pilot/labels{/name}","releases_url":"https://api.github.com/repos/pagarme/pilot/releases{/id}","deployments_url":"https://api.github.com/repos/pagarme/pilot/deployments","created_at":"2017-07-11T14:28:12Z","updated_at":"2018-05-08T19:46:20Z","pushed_at":"2018-05-08T20:57:26Z","git_url":"git://github.com/pagarme/pilot.git","ssh_url":"git@github.com:pagarme/pilot.git","clone_url":"https://github.com/pagarme/pilot.git","svn_url":"https://github.com/pagarme/pilot","homepage":"","size":159437,"stargazers_count":223,"watchers_count":223,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":55,"license":null,"forks":28,"open_issues":55,"watchers":223,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pagarme/pilot/pulls/597"},"html":{"href":"https://github.com/pagarme/pilot/pull/597"},"issue":{"href":"https://api.github.com/repos/pagarme/pilot/issues/597"},"comments":{"href":"https://api.github.com/repos/pagarme/pilot/issues/597/comments"},"review_comments":{"href":"https://api.github.com/repos/pagarme/pilot/pulls/597/comments"},"review_comment":{"href":"https://api.github.com/repos/pagarme/pilot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pagarme/pilot/pulls/597/commits"},"statuses":{"href":"https://api.github.com/repos/pagarme/pilot/statuses/9d82c925d62b5940881f8613f7b21c1c9ed96218"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Deivis"}}