From ee4ac5669bd81e021224ab899f274e7c6233ae01 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Sat, 10 Apr 2021 22:30:48 -0400 Subject: [PATCH] Remove unused parts --- src/api/google.ts | 2 - src/components/CreatePool.tsx | 279 +++++++++++++++++----------------- 2 files changed, 136 insertions(+), 145 deletions(-) diff --git a/src/api/google.ts b/src/api/google.ts index fea6950..44f2167 100644 --- a/src/api/google.ts +++ b/src/api/google.ts @@ -14,5 +14,3 @@ export async function searchForPlaces(query: string) { return json; } - -console.log(searchForPlaces); diff --git a/src/components/CreatePool.tsx b/src/components/CreatePool.tsx index b96a59a..db0a631 100644 --- a/src/components/CreatePool.tsx +++ b/src/components/CreatePool.tsx @@ -1,12 +1,11 @@ -import { makeAPIPostCall } from '../api/utils'; +import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import { makeStyles } from '@material-ui/core/styles'; -import Button from '@material-ui/core/Button'; -import Typography from '@material-ui/core/Typography'; import CloudUploadIcon from '@material-ui/icons/CloudUpload'; -import { useState, useEffect } from 'react'; +import { useEffect, useState } from 'react'; import { searchForPlaces } from '../api/google'; +import { makeAPIPostCall } from '../api/utils'; const useStyles = makeStyles((theme) => ({ root: { maxWidth: 345, @@ -50,146 +49,140 @@ const CreatePool = () => { style={{ margin: '0.5rem', background: '#F3F5F4' }} > - - -
-

- Create Pool -

- - setTitle(event.target.value)} - > -
-
- - setCapacity(parseInt(event.target.value))} - > -
-
- - setStart(event.target.value)} - > -
-
- - setEnd(event.target.value)} - > -
-
- - -
-
- - -
-
- -