Skip to content

Commit

Permalink
fix: move speedcurve utils into payment so as not to break module bou…
Browse files Browse the repository at this point in the history
…ndaries
  • Loading branch information
davidjoy committed Oct 15, 2019
1 parent a138b7a commit 8a54d40
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 194 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = createConfig('jest', {
'src/index.jsx',
'src/payment/checkout/card-validator',
'src/payment/data/handleRequestError.js',
'src/payment/speedcurve.js',
'src/i18n',
'src/store',
'src/data',
Expand Down
190 changes: 0 additions & 190 deletions src/components/App.jsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import Header, { messages as headerMessages } from '@edx/frontend-component-head
import Footer, { messages as footerMessages } from '@edx/frontend-component-footer';

import appMessages from './i18n';
import { PaymentPage, EcommerceRedirect, responseInterceptor } from './payment';
import { PaymentPage, EcommerceRedirect, responseInterceptor, markPerformanceIfAble } from './payment';
import configureStore from './store';
import markPerformanceIfAble from './speedcurve';
import './index.scss';

App.subscribe(APP_READY, () => {
Expand Down
2 changes: 1 addition & 1 deletion src/payment/cart/OrderSummary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from '@edx/frontend-i18n';

import markPerformanceIfAble from '../../speedcurve';
import markPerformanceIfAble from '../speedcurve';

class OrderSummary extends React.Component {
componentDidMount() {
Expand Down
2 changes: 1 addition & 1 deletion src/payment/checkout/payment-form/PaymentForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import CardDetails from './CardDetails';
import CardHolderInformation from './CardHolderInformation';
import getStates from './utils/countryStatesMap';
import messages from './PaymentForm.messages';
import markPerformanceIfAble from '../../../speedcurve';
import markPerformanceIfAble from '../../speedcurve';

const CardValidator = require('../card-validator');

Expand Down
1 change: 1 addition & 0 deletions src/payment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { default as saga } from './data/sagas';
export { storeName } from './data/selectors';
export { default as EcommerceRedirect } from './EcommerceRedirect';
export { default as responseInterceptor } from './responseInterceptor';
export { default as markPerformanceIfAble } from './speedcurve';
File renamed without changes.

0 comments on commit 8a54d40

Please sign in to comment.