From c569fe2c51a122746eac944089eb3341bb084c47 Mon Sep 17 00:00:00 2001 From: Janne Koivistoinen Date: Thu, 4 Jul 2019 16:34:53 +0300 Subject: [PATCH 1/3] fix heroButton search param bug Removed the extra "s?" from the "to" parameter. --- src/components/SectionHero/SectionHero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SectionHero/SectionHero.js b/src/components/SectionHero/SectionHero.js index 2a019b3d..e3cd6482 100644 --- a/src/components/SectionHero/SectionHero.js +++ b/src/components/SectionHero/SectionHero.js @@ -24,7 +24,7 @@ const SectionHero = props => { name="SearchPage" to={{ search: - 's?address=Finland&bounds=70.0922932%2C31.5870999%2C59.693623%2C20.456500199999937', + 'address=Finland&bounds=70.0922932%2C31.5870999%2C59.693623%2C20.456500199999937', }} className={css.heroButton} > From 5d559e2aa0cc62dd4cb3b45a6265117f428a30d5 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 5 Jul 2019 15:25:54 +0300 Subject: [PATCH 2/3] Update test --- .../SectionHero/__snapshots__/SectionHero.test.js.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SectionHero/__snapshots__/SectionHero.test.js.snap b/src/components/SectionHero/__snapshots__/SectionHero.test.js.snap index d73a3a2e..42466870 100644 --- a/src/components/SectionHero/__snapshots__/SectionHero.test.js.snap +++ b/src/components/SectionHero/__snapshots__/SectionHero.test.js.snap @@ -17,7 +17,7 @@ exports[`SectionHero matches snapshot 1`] = ` Date: Fri, 5 Jul 2019 15:29:16 +0300 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 223960a9..38dc8fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2019-XX-XX +- [fix] SectionHero: fix type in search params. There was an extra "/s?". + [#1124](https://github.com/sharetribe/flex-template-web/pull/1124) - [add] Add support for Singapore as the payout country of a provider. Also fix a bug in passing the personal ID number to Stripe. [#1122](https://github.com/sharetribe/flex-template-web/pull/1122) - [add] Add events.mapbox.com to `connect-src` in `csp.js` file.