mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 19:29:51 -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 { 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}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user