From 30322961ded050e48696a2b5b391a1deb8e5b80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Camara?= Date: Wed, 5 Dec 2018 18:52:24 -0200 Subject: [PATCH] Fix /ambs and /merchants --- src/components/LayerMap.js | 13 ------------- src/components/pages/MerchantsPage.js | 19 ------------------- src/utils/feathers.js | 2 +- 3 files changed, 1 insertion(+), 33 deletions(-) diff --git a/src/components/LayerMap.js b/src/components/LayerMap.js index a8d9463..14dc537 100644 --- a/src/components/LayerMap.js +++ b/src/components/LayerMap.js @@ -308,19 +308,6 @@ CustomLayerMap.propTypes = propTypes; // Assign default values to the optional props CustomLayerMap.defaultProps = defaultProps; -/** - * This object is used for type checking the props of the component. - */ -const propTypesLayerMap = { - ambassadorsLayer: PropTypes.bool, - merchantsLayer: PropTypes.bool, - showControls: PropTypes.bool, - mapHeight: PropTypes.string, - ambassadors: PropTypes.array, - merchants: PropTypes.array, - tellers: PropTypes.array, -}; - // Type checking the props of the component CustomLayerMap.propTypes = propTypes; // Assign default values to the optional props diff --git a/src/components/pages/MerchantsPage.js b/src/components/pages/MerchantsPage.js index 10b264b..5cf5795 100644 --- a/src/components/pages/MerchantsPage.js +++ b/src/components/pages/MerchantsPage.js @@ -204,25 +204,6 @@ class MerchantsPage extends Component { }); result.data.map(teller => { - const infoDescription =
-
Address: {teller.address}
- {(teller.phone) && (
Phone: {teller.phone}
)} -
; - if(teller.telegram){ - teller.telegram_original = teller.telegram; - teller.telegram = { - searchText: teller.telegram_original, - value: ( - {teller.telegram} - ) - }; - } - teller.link = { searchText: stripProtocol(teller.url), value: ( diff --git a/src/utils/feathers.js b/src/utils/feathers.js index 2bcc8c2..73ef7f1 100644 --- a/src/utils/feathers.js +++ b/src/utils/feathers.js @@ -3,7 +3,7 @@ import feathers from '@feathersjs/client'; const app = feathers(); // Change to your production ambassador web service //const restClient = feathers.rest('http://localhost:3030'); -const restClient = feathers.rest('https://ambpay.palmpay.io'); +const restClient = feathers.rest('https://intranet.palmpay.io'); // Configure an Fetch AJAX library with that client. For fetch details see https://facebook.github.io/react-native/docs/network.html // For rest details see https://docs.feathersjs.com/api/client/rest.html