Commit ec265bc3 authored by Dmytro Zavgorodniy's avatar Dmytro Zavgorodniy

[RNA-761] Add addPaymentContact, selectPaymentContact routes

parent 0459db15
import React, { Component } from 'react'
export default function enhanceAddPaymentContact(ComposedComponent) {
return class Wrapper extends Component {
render() {
return (
<ComposedComponent {...this.props} />
)
}
}
}
import React, { Component } from 'react'
export default function enhanceSelectPaymentContact(ComposedComponent) {
return class Wrapper extends Component {
render() {
return (
<ComposedComponent {...this.props} />
)
}
}
}
export { default as enhanceAddPaymentContact } from './AddPaymentContact'
export { default as enhanceSelectPaymentContact } from './SelectPaymentContact'
......@@ -18,5 +18,6 @@ export { enhanceAddShipping } from './AddShipping'
export { enhanceSelectShipping } from './SelectShipping'
export { enhanceDeliveryZones } from './DeliveryZones'
export { enhanceStoreMap } from './StoreMap'
export { enhanceAddPaymentContact, enhanceSelectPaymentContact } from './PaymentContact'
export { default as enhanceWineList } from './Store/WineList'
export { default as enhanceStoreTabView } from './Store/StoreTabView'
......@@ -18,6 +18,8 @@ import {
enhanceSelectShipping,
enhanceDeliveryZones,
enhanceStoreMap,
enhanceAddPaymentContact,
enhanceSelectPaymentContact,
} from './Screens'
import { enhanceSearch } from './Screens/Search'
import { enhanceLogin } from './Screens/Login'
......@@ -108,6 +110,14 @@ const routesMap = {
path: 'storeMap',
component: enhanceStoreMap,
},
addPaymentContact: {
path: 'addPaymentContact',
component: enhanceAddPaymentContact,
},
selectPaymentContact: {
path: 'selectPaymentContact',
component: enhanceSelectPaymentContact,
},
}
export function createRoutes(routes = {}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment