Skip to content

Commit

Permalink
Merge pull request #347 from SCBJ-7/feature/#342-refactor-search
Browse files Browse the repository at this point in the history
fix : 검색페이지 오류 수정
  • Loading branch information
chaeminseok authored Apr 22, 2024
2 parents 41f6096 + d501a9b commit 5c8f068
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/searchFilterPage/SearchFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const SearchFilter = () => {
<>
<S.FilterContainer>
<S.FilterContent>
<S.FilterTitle>언제 어디로 여행가세요?</S.FilterTitle>
<S.FilterTitle>언제 어디로 떠나세요?</S.FilterTitle>
<S.FilterBlock onClick={handleRegionModal}>
<S.FilterSubTitle>지역</S.FilterSubTitle>
<S.FilterModalButton>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/searchPage/Search.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import styled from "styled-components";
import TopButtonIcon from "@assets/icons/ic_top_button.svg?react";

export const Container = styled.div`
background-color: ${({ theme }) => theme.color.white};
background-color: ${({ theme }) => theme.color.greyScale7};
`;

export const SearchContainer = styled.div`
width: 100%;
height: 100%;
min-height: 100vh;
color: ${({ theme }) => theme.color.black};
padding: 130px 0 130px 0;
background-color: ${({ theme }) => theme.color.greyScale7};
`;

export const SearchItemFlex = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/pages/searchPage/components/searchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const SearchBar = () => {
const navigate = useNavigate();
const searchInfo = useSearchFilterInfoStore((state) => state.searchInfo);

let searchBarContent = "언제 어디로 여행가세요?";
let searchBarContent = "언제 어디로 떠나세요?";
if (searchInfo.location && searchInfo.checkOut && searchInfo.quantityPeople) {
searchBarContent = `${searchInfo.location} / ${formatDateMonthAndDay(
searchInfo.checkIn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const ItemContainer = styled.div`
width: 100%;
height: 373px;
color: ${({ theme }) => theme.color.black};
position: relative;
@media screen and (min-width: 568px) {
width: calc(50% - 8px);
}
Expand All @@ -25,7 +26,6 @@ export const ItemContent = styled.div`
justify-content: space-between;
min-width: 240px;
height: 181px;
position: relative;
width: 100%;
padding: 24px 16px;
`;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/searchPage/components/searchItem/SearchItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const SearchItem = ({ item }: { item: ISearchList }) => {
</div>
<div>{item.reviewRate}</div>
<div>&middot;</div>
<div>{`${item.hotelRate}성급`}</div>
<div>{item.hotelRate}</div>
</S.ItemRates>
<S.ItemName>{item.name}</S.ItemName>
<S.ItemRoomName>{item.roomType}</S.ItemRoomName>
Expand Down Expand Up @@ -66,7 +66,7 @@ const SearchItem = ({ item }: { item: ISearchList }) => {
</div>
</S.ItemOriginalPriceCover>
<S.ItemPriceCover>
<div>구매가</div>
<div>거래가</div>
<S.ItemPrice>
{item.salePrice.toLocaleString() + "원"}
</S.ItemPrice>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/searchPage/components/searchNav/SearchNav.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ export const SearchNavContainer = styled.div`
min-width: 360px;
width: 100%;
height: 44px;
padding: 0.5rem 1.5rem;
padding: 0.5rem 1.5rem 2.5rem 1.5rem;
position: fixed;
z-index: 1;
top: 72px;
border-bottom: 1px solid ${({ theme }) => theme.color.greyScale6};
`;

export const SearchCellCover = styled.div`
Expand Down

0 comments on commit 5c8f068

Please sign in to comment.