File size: 496 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { createElement } from 'react';
import BillingHistoryComponent from 'calypso/me/purchases/billing-history/main';
import Receipt from './receipt';
export function billingHistory( context, next ) {
context.primary = createElement( BillingHistoryComponent );
next();
}
export function transaction( context, next ) {
const receiptId = parseInt( context.params.receiptId, 10 );
if ( receiptId ) {
context.primary = createElement( Receipt, { transactionId: receiptId } );
}
next();
}
|