Skip to content

Commit

Permalink
Merge pull request #301 from imi21123/test
Browse files Browse the repository at this point in the history
Feat: 홈 화면 StoreList props 수정
  • Loading branch information
imi21123 authored May 8, 2024
2 parents 6daa202 + e0fb5a3 commit be64163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/views/StoreList/StoreList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const StoreList = ({ searchTerm = "", cafe = false, booth = false }) => {
let displayStores = [];

if (cafe) {
displayStores = stores.filter((item) => item.idx < 5);
displayStores = stores.filter((item) => item.idx < 4);
} else if (booth) {
displayStores = stores.filter((item) => item.idx >= 5);
displayStores = stores.filter((item) => item.idx >= 4);
}
// 검색어에 따라 필터링된 목록을 반환하는 로직
const filteredStores = stores.filter((item) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomePage/Homepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const HomePage = () => {
<Banner />

<div className="home_berry_pick">베리 PICK</div>
<StoreList />
<StoreList cafe={true} />

<div className="home_business_info">
<div className="home_business_info_name">ReadyVery</div>
Expand Down

0 comments on commit be64163

Please sign in to comment.