Skip to content

Commit

Permalink
Merge branch 'dev' into feature/searchForm
Browse files Browse the repository at this point in the history
  • Loading branch information
im2hw committed Dec 11, 2023
2 parents 1fea482 + 674301e commit 5e574ee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ko } from 'date-fns/locale';
import React, { useEffect } from 'react';
import React from 'react';
import DatePicker from 'react-datepicker';
import 'react-datepicker/dist/react-datepicker.css';
import styled from 'styled-components';
import { useInput, useDate, useImageFile, useFestival, useAddress } from 'hooks';
import { useInput, useDate, useImageFile, useFestival } from 'hooks';
import uuid from 'react-uuid';
import { uploadFiles } from 'utils/fireStorage';
import { useSelector } from 'react-redux';
Expand All @@ -16,7 +16,6 @@ export default function FestivalRegistrationForm({ children }) {

const [name, handleChangeName] = useInput();
const [address, handleChangeAddress] = useInput();
// const [address, handleChangeInputText] = useAddress();
const [description, handleChangeDescription] = useInput();
const [startDate, handleChangeStartDate] = useDate();
const [endDate, handleChangeEndDate] = useDate();
Expand Down
4 changes: 2 additions & 2 deletions src/components/SearchForm/SearchForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default function SearchForm() {
const regionNameList = regionList.map((n) => n.name);
const [startDate, handleChangeStartDate] = useDate();
const [endDate, handleChangeEndDate] = useDate();
const { region, onSelectRegion, onResetRegion } = useInput(regionNameList[0]);
const { city, onSelectCity, onResetCity } = useInput();
const [region, onSelectRegion, onResetRegion] = useInput(regionNameList[0]);
const [city, onSelectCity, onResetCity] = useInput();
const [searchResult, setSearchResult] = useState([]);

const regionCityList = region && regionList.find((n) => n.name === region).city;
Expand Down
10 changes: 9 additions & 1 deletion src/pages/Search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function Search() {
return (
<>
<StContainer>
<StTitle>내 주변 축제</StTitle>
<StkakaoMap mapState={mapState} onClick={mapController.handleClickSetMarker} mapControl={true}>
{markerController.showGeoLocationMarker()}
{markerController.showFestivalMarkers()}
Expand All @@ -24,8 +25,15 @@ function Search() {
);
}

const StTitle = styled.h1`
font-size: 2rem;
font-weight: bold;
margin: 1em 0;
padding-top: 3rem;
`;

const StkakaoMap = styled(KakaoMap)`
margin-top: 6rem;
margin-top: 3rem;
margin-bottom: 3rem;
`;

Expand Down

0 comments on commit 5e574ee

Please sign in to comment.