remove old location search from CreatePool

This commit is contained in:
Michael Fatemi 2021-04-11 11:01:20 -04:00
parent a33ec13674
commit fd84e41d7c
2 changed files with 1 additions and 21 deletions

View File

@ -4,7 +4,6 @@ import CardContent from '@material-ui/core/CardContent';
import { makeStyles } from '@material-ui/core/styles'; import { makeStyles } from '@material-ui/core/styles';
import CloudUploadIcon from '@material-ui/icons/CloudUpload'; import CloudUploadIcon from '@material-ui/icons/CloudUpload';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { searchForPlaces } from '../api/google';
import { makeAPIPostCall, makeAPIGetCall } from '../api/utils'; import { makeAPIPostCall, makeAPIGetCall } from '../api/utils';
import { useHistory } from 'react-router-dom'; import { useHistory } from 'react-router-dom';
@ -195,26 +194,6 @@ const CreatePool = ({ groupID }: { groupID?: string }) => {
</select> </select>
</div> </div>
<div className="form-group"> <div className="form-group">
<label className="" htmlFor="location">
Location:
</label>
<input
type="text"
className="form-control"
id="location_input"
></input>
<button
onClick={(e) => {
e.preventDefault();
let input = document.getElementById(
'location_input'
) as HTMLInputElement;
let places = searchForPlaces(input.value);
console.log(places);
}}
>
Search
</button>
<PlacesAutocomplete <PlacesAutocomplete
value={address} value={address}
onChange={handleChange} onChange={handleChange}

View File

@ -6,6 +6,7 @@ import { makeAPIGetCall } from '../api/utils';
import CreatePool from './CreatePool'; import CreatePool from './CreatePool';
import Pool from './Pool'; import Pool from './Pool';
// eslint-disable-next-line
const SAMPLE_POOLS: Carpool.Pool[] = [ const SAMPLE_POOLS: Carpool.Pool[] = [
{ {
_id: '1234', _id: '1234',