Created new hook to handle visits filtering via query string

This commit is contained in:
Alejandro Celaya
2022-12-03 12:15:36 +01:00
parent 165afa436d
commit d2ebc880a0
9 changed files with 96 additions and 24 deletions

View File

@@ -60,7 +60,7 @@ describe('<VisitsFilterDropdown />', () => {
[1, { orphanVisitsType: 'base_url' }, {}],
[2, { orphanVisitsType: 'invalid_short_url' }, {}],
[3, { orphanVisitsType: 'regular_404' }, {}],
[4, {}, { excludeBots: true }],
[4, { orphanVisitsType: undefined, excludeBots: false }, { excludeBots: true }],
])('invokes onChange with proper selection when an item is clicked', async (index, expectedSelection, selected) => {
const { user } = setUp(selected);

View File

@@ -167,7 +167,7 @@ exports[`<MapModal /> renders expected map 1`] = `
</span>
©
<a
href="http://osm.org/copyright"
href="https://osm.org/copyright"
>
OpenStreetMap
</a>

View File

@@ -167,7 +167,7 @@ exports[`<OpenMapModalBtn /> filters out non-active cities from list of location
</span>
©
<a
href="http://osm.org/copyright"
href="https://osm.org/copyright"
>
OpenStreetMap
</a>
@@ -335,7 +335,7 @@ exports[`<OpenMapModalBtn /> filters out non-active cities from list of location
</span>
©
<a
href="http://osm.org/copyright"
href="https://osm.org/copyright"
>
OpenStreetMap
</a>