Skip to content

Commit 0f1d7ed

Browse files
authored
Merge pull request #321 from imi21123/test
Feat: 축제 부스 리스트 관련 기능 삭제
2 parents d216991 + edd0436 commit 0f1d7ed

File tree

5 files changed

+4
-78
lines changed

5 files changed

+4
-78
lines changed

src/App.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import PaymentPage from "./pages/PaymentPage/PaymentPage";
3030
import PaymentFailPage from "./pages/PaymentPage/Redirect/PaymentFailPage";
3131
import PaymentLoadingPage from "./pages/PaymentPage/Redirect/PaymentLoadingPage";
3232
import Splash from "./pages/Splash/Splash";
33-
import FestivalBoothSearch from "./pages/StoreSearch/FestivalBoothSearch";
3433
import StoreSearchPage from "./pages/StoreSearch/StoreSearch";
3534
function App() {
3635
// const [cookies, , removeCookies] = useCookies();
@@ -57,10 +56,8 @@ function App() {
5756
const NewPaymentPage = Auth(PaymentPage, true, 2);
5857
const NewPaymentLoadingPage = Auth(PaymentLoadingPage, true, 2);
5958
const NewPaymentFailPage = Auth(PaymentFailPage, true, 2);
60-
const NewFestivalBoothSearch = Auth(FestivalBoothSearch, true, 2);
6159
// const NewPackagingStatusPage = Auth(PackagingStatusPage, true);
6260

63-
6461
return (
6562
<div className="App">
6663
<RecoilRoot>
@@ -121,9 +118,6 @@ function App() {
121118
/>
122119
{/* 결제 실패 리다이렉트 페이지 */}
123120
<Route path="/payment/fail" element={<NewPaymentFailPage />} />
124-
125-
{/* 축제 부스 검색 페이지 */}
126-
<Route path="/booth" element={<NewFestivalBoothSearch />} />
127121
</Routes>
128122
</Suspense>
129123
</RecoilRoot>

src/components/views/StoreList/StoreList.jsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@ import { IMAGES } from "../../../constants/images";
44
import useFetchSearch from "../../../hooks/useFetchSearch";
55
import "./StoreList.css";
66

7-
const StoreList = ({ searchTerm = "", cafe = false, booth = false }) => {
7+
const StoreList = ({ searchTerm = "" }) => {
88
const navigate = useNavigate();
99
const stores = useFetchSearch();
1010
let displayStores = [];
1111

12-
if (cafe && booth) {
13-
displayStores = stores;
14-
} else if (cafe) {
15-
displayStores = stores.filter((item) => item.idx < 10);
16-
} else if (booth) {
17-
displayStores = stores.filter((item) => item.idx >= 10);
18-
}
19-
2012
// 검색어에 따라 필터링된 목록을 반환하는 로직
2113
const filteredStores = stores.filter((item) => {
2214
return item.name.toLowerCase().includes(searchTerm.toLowerCase());
@@ -32,11 +24,7 @@ const StoreList = ({ searchTerm = "", cafe = false, booth = false }) => {
3224
key={item.idx}
3325
className="store_list_item"
3426
onClick={() => {
35-
if (item.idx >= 10) {
36-
navigate(`/store?storeId=${item.idx}&inout=2`);
37-
} else {
38-
navigate(`/packagingStatus?storeId=${item.idx}`);
39-
}
27+
navigate(`/packagingStatus?storeId=${item.idx}`);
4028
}}
4129
>
4230
<img

src/pages/HomePage/Homepage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const HomePage = () => {
148148
<Banner />
149149

150150
<div className="home_berry_pick">베리 PICK</div>
151-
<StoreList cafe={true} />
151+
<StoreList />
152152

153153
<div className="home_business_info">
154154
<div className="home_business_info_name">ReadyVery</div>

src/pages/StoreSearch/FestivalBoothSearch.jsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/pages/StoreSearch/StoreSearch.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function StoreSearch() {
4646
</form>
4747

4848
{/* Debounced search term을 사용하여 StoreList에 prop으로 전달 */}
49-
<StoreList searchTerm={debouncedSearchTerm} cafe={true} booth={true} />
49+
<StoreList searchTerm={debouncedSearchTerm} />
5050

5151
<NavBar />
5252
</div>

0 commit comments

Comments
 (0)