{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/70636994","id":70636994,"diff_hunk":"@@ -1,62 +1,67 @@\n /**\n  * External dependencies\n  */\n-var React = require( 'react' ),\n-\tclassNames = require( 'classnames' );\n+import React from 'react';\n+import classNames from 'classnames';\n \n /**\n  * Internal dependencies\n  */\n-var PayButton = require( './pay-button' ),\n-\tCreditCardSelector = require( './credit-card-selector' ),\n-\tTermsOfService = require( './terms-of-service' ),\n-\tPaymentBox = require( './payment-box' ),\n-\tanalytics = require( 'lib/analytics' ),\n-\tcartValues = require( 'lib/cart-values' );\n+import PayButton from './pay-button';\n+import CreditCardSelector from './credit-card-selector';\n+import TermsOfService from './terms-of-service';\n+import PaymentBox from './payment-box';\n+import analytics from 'lib/analytics';\n+import cartValues from 'lib/cart-values';\n \n-var CreditCardPaymentBox = React.createClass( {\n-\tgetInitialState: function() {\n+const CreditCardPaymentBox = React.createClass( {\n+\tgetInitialState() {\n \t\treturn { previousCart: null };\n \t},\n \n-\thandleToggle: function( event ) {\n+\thandleToggle( event ) {\n \t\tevent.preventDefault();\n \n \t\tanalytics.ga.recordEvent( 'Upgrades', 'Clicked Or Use Paypal Link' );\n \t\tanalytics.tracks.recordEvent( 'calypso_checkout_switch_to_paypal' );\n \t\tthis.props.onToggle( 'paypal' );\n \t},\n \n-\tcontent: function() {\n-\t\tvar cart = this.props.cart;\n+\tcontent() {\n+\t\tconst { cart, cards, countriesList, initialCard, transaction } = this.props;\n \n \t\treturn (\n \t\t\t<form onSubmit={ this.props.onSubmit }>\n \t\t\t\t<CreditCardSelector\n-\t\t\t\t\tcards={ this.props.cards }\n-\t\t\t\t\tcountriesList={ this.props.countriesList }\n-\t\t\t\t\tinitialCard={ this.props.initialCard }\n-\t\t\t\t\ttransaction={ this.props.transaction } />\n+\t\t\t\t\tcards={ cards }\n+\t\t\t\t\tcountriesList={ countriesList }\n+\t\t\t\t\tinitialCard={ initialCard }\n+\t\t\t\t\ttransaction={ transaction } />\n \n \t\t\t\t<TermsOfService\n \t\t\t\t\thasRenewableSubscription={ cartValues.cartItems.hasRenewableSubscription( cart ) } />\n \n-\t\t\t\t<div className=\"payment-box-actions\">\n+\t\t\t\t<div className=\"checkout__payment-box-actions\">\n \t\t\t\t\t<PayButton\n \t\t\t\t\t\tcart={ this.props.cart }\n \t\t\t\t\t\ttransactionStep={ this.props.transactionStep } />\n \n-\t\t\t\t\t{ cartValues.isPayPalExpressEnabled( cart )\n-\t\t\t\t\t\t? <a className=\"credit-card-payment-box__switch-link\" href=\"\" onClick={ this.handleToggle }>{ this.translate( 'or use PayPal' ) }</a>\n-\t\t\t\t\t\t: null\n+\t\t\t\t\t{ cartValues.isPayPalExpressEnabled( cart ) &&\n+\t\t\t\t\t\t<a\n+\t\t\t\t\t\t\tclassName=\"checkout__credit-card-payment-box__switch-link\"\n+\t\t\t\t\t\t\thref=\"\"","path":"client/my-sites/upgrades/checkout/credit-card-payment-box.jsx","position":73,"original_position":73,"commit_id":"e029215b2740d99ceca54c38da0c3d06fb59ff36","original_commit_id":"e029215b2740d99ceca54c38da0c3d06fb59ff36","user":{"login":"lamosty","id":4988512,"avatar_url":"https://avatars.githubusercontent.com/u/4988512?v=3","gravatar_id":"","url":"https://api.github.com/users/lamosty","html_url":"https://github.com/lamosty","followers_url":"https://api.github.com/users/lamosty/followers","following_url":"https://api.github.com/users/lamosty/following{/other_user}","gists_url":"https://api.github.com/users/lamosty/gists{/gist_id}","starred_url":"https://api.github.com/users/lamosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamosty/subscriptions","organizations_url":"https://api.github.com/users/lamosty/orgs","repos_url":"https://api.github.com/users/lamosty/repos","events_url":"https://api.github.com/users/lamosty/events{/privacy}","received_events_url":"https://api.github.com/users/lamosty/received_events","type":"User","site_admin":false},"body":"Alright, then.:)","created_at":"2016-07-13T14:35:23Z","updated_at":"2016-07-13T14:35:23Z","html_url":"https://github.com/Automattic/wp-calypso/pull/6728#discussion_r70636994","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/70636994"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/6728#discussion_r70636994"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728","id":77182943,"html_url":"https://github.com/Automattic/wp-calypso/pull/6728","diff_url":"https://github.com/Automattic/wp-calypso/pull/6728.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/6728.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/6728","number":6728,"state":"open","locked":false,"title":"Upgrades: fix Eslint warnings. ES6ify.","user":{"login":"retrofox","id":77539,"avatar_url":"https://avatars.githubusercontent.com/u/77539?v=3","gravatar_id":"","url":"https://api.github.com/users/retrofox","html_url":"https://github.com/retrofox","followers_url":"https://api.github.com/users/retrofox/followers","following_url":"https://api.github.com/users/retrofox/following{/other_user}","gists_url":"https://api.github.com/users/retrofox/gists{/gist_id}","starred_url":"https://api.github.com/users/retrofox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retrofox/subscriptions","organizations_url":"https://api.github.com/users/retrofox/orgs","repos_url":"https://api.github.com/users/retrofox/repos","events_url":"https://api.github.com/users/retrofox/events{/privacy}","received_events_url":"https://api.github.com/users/retrofox/received_events","type":"User","site_admin":false},"body":"This PRs just fixes many Eslint warnings and implement ES6 syntax.\r\n\r\n### Testing\r\n\r\nThe changes affect to the payment boxes. One way to test these ones is making the flow to upgrades a plan in the different ways that we already have.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/77539/16781803/560bf11a-4853-11e6-96fe-3e0ba3a52477.png)\r\n\n\nTest live: https://calypso.live/?branch=update/janitorial-my-sites-checkout","created_at":"2016-07-12T20:09:28Z","updated_at":"2016-07-13T14:35:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ccc1454a1ac9a6ae16cb50e4a5c9f1b4afb8d04","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/89","html_url":"https://github.com/Automattic/wp-calypso/milestones/Plans:%20Maintenance","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/89/labels","id":1768456,"number":89,"title":"Plans: Maintenance","description":"","creator":{"login":"fabianapsimoes","id":1248436,"avatar_url":"https://avatars.githubusercontent.com/u/1248436?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianapsimoes","html_url":"https://github.com/fabianapsimoes","followers_url":"https://api.github.com/users/fabianapsimoes/followers","following_url":"https://api.github.com/users/fabianapsimoes/following{/other_user}","gists_url":"https://api.github.com/users/fabianapsimoes/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianapsimoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianapsimoes/subscriptions","organizations_url":"https://api.github.com/users/fabianapsimoes/orgs","repos_url":"https://api.github.com/users/fabianapsimoes/repos","events_url":"https://api.github.com/users/fabianapsimoes/events{/privacy}","received_events_url":"https://api.github.com/users/fabianapsimoes/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":100,"state":"open","created_at":"2016-05-16T10:50:24Z","updated_at":"2016-07-13T11:11:56Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/6728/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/e029215b2740d99ceca54c38da0c3d06fb59ff36","head":{"label":"Automattic:update/janitorial-my-sites-checkout","ref":"update/janitorial-my-sites-checkout","sha":"e029215b2740d99ceca54c38da0c3d06fb59ff36","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2016-07-13T12:14:21Z","pushed_at":"2016-07-13T14:07:18Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":81655,"stargazers_count":7571,"watchers_count":7571,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":943,"mirror_url":null,"open_issues_count":1320,"forks":943,"open_issues":1320,"watchers":7571,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"84d9a4b762ebd139224707a245583fdb8647945d","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2016-07-13T12:14:21Z","pushed_at":"2016-07-13T14:07:18Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":81655,"stargazers_count":7571,"watchers_count":7571,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":943,"mirror_url":null,"open_issues_count":1320,"forks":943,"open_issues":1320,"watchers":7571,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/6728"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/6728"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/6728/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/6728/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/e029215b2740d99ceca54c38da0c3d06fb59ff36"}}}}
{"actor":{"display_login":"lamosty"}}