Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thansen committed Oct 5, 2023
1 parent dcfddc5 commit 2b1362b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 493 deletions.
3 changes: 1 addition & 2 deletions frontend/src/Components/Conditions/ConditionsMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Feature, FeatureCollection } from 'geojson';
import Zoom from '../Map/Zoom';
import { MAP_OPTIONS } from './constants';

import Navbar from '../../Components/Navbar';
import Search from '../Map/Search';
import '../../css/navbar.css';
import '../../css/search.css';
Expand Down Expand Up @@ -411,7 +410,7 @@ const ConditionsMap = (props: any) => {
<div style={{ height: '100%' }}>
<div className="nav-wrapper">
<div className="nav-container">
<Search />
<Search onPlaceSelect={(value: any) => {}} />
</div>
<div className="filter-container">
<select
Expand Down
19 changes: 14 additions & 5 deletions frontend/src/Components/Map/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ import '../../css/search.css';

// console.log(data);

const Search: React.FC = () => {
function onPlaceSelect(value: any) {
console.log(value);
}
interface Props {
/**
* value: text input in the search bar
* onPlaceSelect: function taking argument "value"
*/

onPlaceSelect: (value: any) => void;
}

/**
* Component rendering Search bar
*/

const Search: React.FC<Props> = ({ onPlaceSelect }) => {
function onSuggestionChange(value: any) {
console.log(value);
}
Expand Down Expand Up @@ -57,7 +66,7 @@ const Search: React.FC = () => {
<GeoapifyGeocoderAutocomplete
placeholder="Enter address here"
// value={value}
// type={type}
type={'street'}
// lang={language}
// position={position}
// countryCodes={countryCodes}
Expand Down
32 changes: 0 additions & 32 deletions frontend/src/Components/Navbar.tsx

This file was deleted.

Loading

0 comments on commit 2b1362b

Please sign in to comment.