Skip to content

Commit

Permalink
chore(geo search): update demo with provided hook (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavFitz authored Jul 10, 2023
1 parent 0db12f3 commit 85cee72
Show file tree
Hide file tree
Showing 4 changed files with 249 additions and 262 deletions.
4 changes: 2 additions & 2 deletions react-instantsearch-hooks/geo-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
},
"dependencies": {
"algoliasearch": "4",
"instantsearch.js": "4.55.0",
"leaflet": "1.8.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-instantsearch-hooks-web": "6.43.0",
"react-instantsearch-hooks-web": "6.46.0",
"react-leaflet": "4.0.1"
},
"devDependencies": {
"@types/leaflet": "1.7.11",
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6",
"parcel": "2.5.0",
"process": "^0.11.10",
"typescript": "4.7.4"
}
}
6 changes: 2 additions & 4 deletions react-instantsearch-hooks/geo-search/src/Airports.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React, { useState } from 'react';
import { Marker, Popup, useMapEvents } from 'react-leaflet';
import { DivIcon } from 'leaflet';
import { useSearchBox } from 'react-instantsearch-hooks-web';
import { useGeoSearch } from './useGeoSearch';

import type { GeoHit } from 'instantsearch.js/es/connectors/geo-search/connectGeoSearch';
import { useSearchBox, useGeoSearch } from 'react-instantsearch-hooks-web';
import type { GeoHit } from 'react-instantsearch-hooks-web';

type Airport = {
airport_id: string;
Expand Down
21 changes: 0 additions & 21 deletions react-instantsearch-hooks/geo-search/src/useGeoSearch.ts

This file was deleted.

Loading

0 comments on commit 85cee72

Please sign in to comment.