Skip to content

Commit

Permalink
refactor(buy sell template loading)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed May 30, 2018
1 parent bff6908 commit 7e02483
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { getData } from './selectors'
import Success from './template.success'
import Loading from '../../../template.loading'
import Loading from 'components/BuySell/Loading'

class CoinifyBuyContainer extends React.Component {
constructor (props) {
Expand Down Expand Up @@ -42,7 +42,7 @@ class CoinifyBuyContainer extends React.Component {
})

return data.cata({
Success: (value) => <Success {...this.props}
Success: (value) => <Success
value={value}
handleTrade={handleTrade}
showModal={showModal}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { formValueSelector } from 'redux-form'
import { lift, path } from 'ramda'
// import settings from 'config'
import { selectors } from 'data'

export const getProfileData = (state) => {
const profile = selectors.core.data.coinify.getProfile(state)
// const nextAddress = selectors.core.common.bitcoin.getNextAvailableReceiveAddress(settings.NETWORK_BITCOIN, 0, state)
const kycs = selectors.core.data.coinify.getSortedKycs(state)
return lift((profile, kycs) => ({ profile, kycs }))(profile, kycs)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { getData } from './selectors'
import Success from './template.success.js'
import Loading from '../../../template.loading.js'
import Loading from 'components/BuySell/Loading'

class OrderHistoryContainer extends React.Component {
componentDidMount () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { path } from 'ramda'
import { getQuoteInputData } from './selectors'
import Loading from '../../template.loading'
import Loading from 'components/BuySell/Loading'

class QuoteInput extends Component {
render () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { connect } from 'react-redux'
import { actions } from 'data'
import { getData } from './selectors.js'
import Success from './template.success.js'
import Loading from '../../../../template.loading'
import Loading from 'components/BuySell/Loading'
class AddCustomerDetailsContainer extends React.PureComponent {
constructor (props) {
super(props)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { prop } from 'ramda'
import { actions } from 'data'
import { getData } from './selectors.js'
import Success from './template.success.js'
import Loading from '../../../../template.loading'
import Loading from 'components/BuySell/Loading'

class SelectAccountsContainer extends React.PureComponent {
constructor (props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { getData } from './selectors'
import Success from './template.success'
import Loading from '../../../template.loading'
import Loading from 'components/BuySell/Loading'

class SellContainer extends React.Component {
constructor (props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { getBase, getData, getErrors, getQuote, getSellQuote, getTrades, getPayment } from './selectors'
import Success from './template.success'
import Loading from '../../template.loading'
import Loading from 'components/BuySell/Loading'
import { path } from 'ramda'

class SfoxCheckout extends React.PureComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Field, reduxForm } from 'redux-form'
import { TabMenuBuySellStatus } from 'components/Form'
import HorizontalMenu from 'components/HorizontalMenu'
import SelectPartner from './template.success'
import Loading from './template.loading'
import Loading from 'components/BuySell/Loading'
import ui from 'redux-ui'
import { hasAccount } from 'services/ExchangeService'

Expand Down

This file was deleted.

0 comments on commit 7e02483

Please sign in to comment.