Skip to content

Commit

Permalink
Checkout: Add copy changes to the Thank You page for the domain only …
Browse files Browse the repository at this point in the history
…site flow
  • Loading branch information
gziolo authored and drewblaisdell committed Mar 7, 2017
1 parent a46bbfb commit 1de5e4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions client/my-sites/upgrades/checkout-thank-you/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Card from 'components/card';
import ChargebackDetails from './chargeback-details';
import CheckoutThankYouFeaturesHeader from './features-header';
import CheckoutThankYouHeader from './header';
import { domainManagementEdit } from 'my-sites/upgrades/paths';
import { domainManagementList } from 'my-sites/upgrades/paths';
import DomainMappingDetails from './domain-mapping-details';
import DomainRegistrationDetails from './domain-registration-details';
import { fetchReceipt } from 'state/receipts/actions';
Expand Down Expand Up @@ -242,19 +242,19 @@ const CheckoutThankYou = React.createClass( {
}

if ( this.props.domainOnlySiteFlow && purchases.length > 0 && ! failedPurchases.length ) {
const [ purchase, domainName ] = findPurchaseAndDomain( purchases, isDomainRegistration );
const domainName = find( purchases, isDomainRegistration ).meta;

return (
<Main className="checkout-thank-you">
{ this.renderConfirmationNotice() }

<ThankYouCard
name={ this.translate( 'Domain Registration' ) }
price={ purchase.displayPrice }
name={ domainName }
price={ this.props.receipt.data.displayPrice }
heading={ this.translate( 'Thank you for your purchase!' ) }
description={ this.translate( "That looks like a great domain. Now it's time to get it all set up." ) }
buttonUrl={ domainManagementEdit( domainName, domainName ) }
buttonText={ this.translate( 'Manage Your Domain' ) }
buttonUrl={ domainManagementList( domainName ) }
buttonText={ this.translate( 'Go To Your Domain' ) }
/>
</Main>
);
Expand Down
2 changes: 1 addition & 1 deletion client/state/receipts/assembler.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export function createReceiptObject( data ) {
return {
receiptId: data.receipt_id,
displayPrice: data.display_price,
purchases: data.purchases.map( purchase => {
return {
displayPrice: purchase.display_price,
freeTrial: purchase.free_trial,
isDomainRegistration: Boolean( purchase.is_domain_registration ),
meta: purchase.meta,
Expand Down

0 comments on commit 1de5e4c

Please sign in to comment.