From 57a63fa711a5e5f722ca427fc30229e7e3bcb8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Camara?= Date: Wed, 31 Oct 2018 19:53:04 -0300 Subject: [PATCH] Replace city and country by sortable location --- src/components/pages/AmbassadorsPage.js | 2 +- src/components/pages/MerchantsPage.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/pages/AmbassadorsPage.js b/src/components/pages/AmbassadorsPage.js index b25c16a..9b34dd7 100644 --- a/src/components/pages/AmbassadorsPage.js +++ b/src/components/pages/AmbassadorsPage.js @@ -394,7 +394,7 @@ class AmbassadorsPage extends Component { Address: {merchant.address} {(merchant.phone) && (
Phone: {merchant.phone}
)} ; + merchant.location = { + searchText: `${merchant.country} - ${merchant.city}`, + value: (merchant.city) ? `${merchant.city} - ${merchant.country}`: merchant.country + } merchant.map =