diff --git a/src/App.js b/src/App.js index 7206f1f..19aea70 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ /*import logo from './logo.svg';*/ import "./App.css"; -import Input from "./Input.js"; +import BaseInput from "./BaseInput.js"; import Map from "./map"; import { useState, useRef, useLayoutEffect } from "react"; import { useLoadScript } from "@react-google-maps/api"; @@ -52,7 +52,8 @@ function App() { spacing={2}> - +

+ } /> @@ -74,7 +75,7 @@ function App() { spacing={2}> - + } /> diff --git a/src/Input.js b/src/BaseInput.js similarity index 76% rename from src/Input.js rename to src/BaseInput.js index d56ea1f..28d0532 100644 --- a/src/Input.js +++ b/src/BaseInput.js @@ -1,7 +1,6 @@ import { useState, forwardRef, useImperativeHandle, useEffect } from "react"; import * as React from 'react'; -import Button from '@mui/material/Button'; -import TextField from '@mui/material/TextField'; +import { TextField, Button } from '@mui/material'; const mapStyles = [ { mapId: "1fc21c527f198d4e", displayName: "Default Theme", buttonColorCss: "0070d2" }, @@ -11,7 +10,7 @@ const mapStyles = [ -const Input = forwardRef(({ setConcerts, setUserLocation, setMapStyle, startDate, endDate }, ref) => { +const BaseInput = forwardRef(({ setConcerts, setUserLocation, setMapStyle, startDate, endDate }, ref) => { useEffect(() => { function showPosition(position) { @@ -69,11 +68,22 @@ const Input = forwardRef(({ setConcerts, setUserLocation, setMapStyle, startDate return (

- -
- setArtistName(e.target.value)} /> -
- + setArtistName(e.target.value)} + /> +

+

Map Style:{" "} @@ -84,9 +94,9 @@ const Input = forwardRef(({ setConcerts, setUserLocation, setMapStyle, startDate ))} -
+
); }); -export default Input; +export default BaseInput;