Commit d3004fc2 authored by Denis Sedura's avatar Denis Sedura

[RNA-822] Add StoreInfo, StoreMap, DeliveryZone

parent f2f91942
import React, { Component } from 'react'
export default function enhanceDeliveryZones(ComposedComponent) {
return class Wrapper extends Component {
render() {
return (
<ComposedComponent {...this.props} />
)
}
}
}
export { default as enhanceDeliveryZones } from './DeliveryZones'
import React, { Component } from 'react'
export default function enhanceStoreMap(ComposedComponent) {
return class Wrapper extends Component {
render() {
return (
<ComposedComponent {...this.props} />
)
}
}
}
export { default as enhanceStoreMap } from './StoreMap'
......@@ -16,5 +16,7 @@ export { enhancePaymentMethods } from './PaymentMethods'
export { enhancePaymentDetails } from './PaymentDetails'
export { enhanceAddShipping } from './AddShipping'
export { enhanceSelectShipping } from './SelectShipping'
export { enhanceDeliveryZones } from './DeliveryZones'
export { enhanceStoreMap } from './StoreMap'
export { default as enhanceWineList } from './Store/WineList'
export { default as enhanceStoreTabView } from './Store/StoreTabView'
......@@ -16,6 +16,8 @@ import {
enhancePaymentMethods,
enhanceAddShipping,
enhanceSelectShipping,
enhanceDeliveryZones,
enhanceStoreMap,
} from './Screens'
import { enhanceSearch } from './Screens/Search'
import { enhanceLogin } from './Screens/Login'
......@@ -98,6 +100,14 @@ const routesMap = {
path: 'selectShipping',
component: enhanceSelectShipping,
},
deliveryZones: {
path: 'deliveryZones',
component: enhanceDeliveryZones,
},
storeMap: {
path: 'storeMap',
component: enhanceStoreMap,
},
}
export function createRoutes(routes = {}) {
......
......@@ -28,7 +28,7 @@ const tipsiMiddleware = createApiMiddleware({
}),
})
const middleware = [tipsiMiddleware, thunk, analyticsMiddleware]// ,logger]
const middleware = [tipsiMiddleware, thunk, analyticsMiddleware ,logger]
// if (__DEV__) {
// middleware.push(require('redux-logger')())
......
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