From c5a2ea8b8fc19daa512c57f39ba6ff72ceb4f7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Camara?= Date: Sun, 28 Oct 2018 22:22:19 -0300 Subject: [PATCH] Add telegram hyperlink with correct link --- src/components/pages/AmbassadorsPage.js | 10 ++++++++++ src/utils/feathers.js | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/pages/AmbassadorsPage.js b/src/components/pages/AmbassadorsPage.js index 6f38ff1..74b8d4e 100644 --- a/src/components/pages/AmbassadorsPage.js +++ b/src/components/pages/AmbassadorsPage.js @@ -138,6 +138,16 @@ class AmbassadorsPage extends Component { searchText: app.addLocationSearchText(ambassador.cities), value: app.addLocation(ambassador.cities) } + ambassador.telegram = { + searchText: ambassador.telegram, + value: ( + {ambassador.telegram} + ) + } ambassador.map = app.addMapButton(ambassador, ambassador.cities); ambassador.link = {stripProtocol(ambassador.url)}; diff --git a/src/utils/feathers.js b/src/utils/feathers.js index 08dde32..187ceef 100644 --- a/src/utils/feathers.js +++ b/src/utils/feathers.js @@ -2,8 +2,8 @@ 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://palmpaybackend.leticiacamara.com'); +const restClient = feathers.rest('http://localhost:3030'); +// const restClient = feathers.rest('https://palmpaybackend.leticiacamara.com'); // 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