diff --git a/src/components/event/eventForm/EventForm.jsx b/src/components/event/eventForm/EventForm.jsx index d72956b..88defe1 100644 --- a/src/components/event/eventForm/EventForm.jsx +++ b/src/components/event/eventForm/EventForm.jsx @@ -1,21 +1,14 @@ import React, { useState } from "react"; import "./eventForm.css"; import { useNavigate } from 'react-router-dom'; +import Select from 'react-select' const EventForm = () => { -const subjects = ["Korean", "English", "Math", "Social Studies", "Science", "Music", "Art", "Physical Education"]; -const initialSubject = subjects[0]; -const activities = ["reading", "gaming", "swimming", "hiking"]; -const initialActivity = activities[0]; -const routines = ["I do it every day", "I do it every week", "I do it every month"]; -const initialRoutine = routines[0]; -const wheres = ["on games", "on transportation", "on buying accessories", "on exercising", "on snacks"]; -const initialWhere = wheres[0]; - - const [selectedActivity, setSelectedActivity] = useState(initialActivity); - const [selectedSubject, setSelectedSubject] = useState(initialSubject); - const [selectedRoutine, setSelectedRoutine] = useState(initialRoutine); - const [selectedWhere, setSelectedWhere] = useState(initialWhere); + + const [selectedActivity, setSelectedActivity] = useState(); + const [selectedSubject, setSelectedSubject] = useState(); + const [selectedRoutine, setSelectedRoutine] = useState(); + const [selectedWhere, setSelectedWhere] = useState(); const [selectedAmount, setSelectedAmount] = useState(""); const [loading, setLoading] = useState(false); const navigate = useNavigate(); @@ -61,12 +54,12 @@ const sociability = sociabilityInput.value; navigate('/event-result', { state: { requestPrompt } }); }; - return ( - <> +