mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 11:20:17 -04:00
remove old location search from CreatePool
This commit is contained in:
parent
a33ec13674
commit
fd84e41d7c
|
@ -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}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user