diff --git a/src/components/CreatePool.tsx b/src/components/CreatePool.tsx index b473351..0051e9a 100644 --- a/src/components/CreatePool.tsx +++ b/src/components/CreatePool.tsx @@ -4,7 +4,6 @@ import CardContent from '@material-ui/core/CardContent'; import { makeStyles } from '@material-ui/core/styles'; import CloudUploadIcon from '@material-ui/icons/CloudUpload'; import { useEffect, useState } from 'react'; -import { searchForPlaces } from '../api/google'; import { makeAPIPostCall, makeAPIGetCall } from '../api/utils'; import { useHistory } from 'react-router-dom'; @@ -195,26 +194,6 @@ const CreatePool = ({ groupID }: { groupID?: string }) => { </select> </div> <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 value={address} onChange={handleChange} diff --git a/src/components/Group.tsx b/src/components/Group.tsx index f1ed356..0a280c8 100644 --- a/src/components/Group.tsx +++ b/src/components/Group.tsx @@ -6,6 +6,7 @@ import { makeAPIGetCall } from '../api/utils'; import CreatePool from './CreatePool'; import Pool from './Pool'; +// eslint-disable-next-line const SAMPLE_POOLS: Carpool.Pool[] = [ { _id: '1234',