diff --git a/components/organisms/index.ts b/components/organisms/index.ts index ff8605e..2a94e25 100644 --- a/components/organisms/index.ts +++ b/components/organisms/index.ts @@ -15,7 +15,7 @@ export { ReviewModal } from "./modals"; export type { ReviewModalProps, ConfirmModalProps } from "./modals"; // Shop Grid -export { ShopGrid } from "./shop-grid"; +// export { ShopGrid } from "./shop-grid"; export type { ShopGridProps } from "./shop-grid"; // Manager diff --git a/components/organisms/shop-grid/ShopGrid.tsx b/components/organisms/shop-grid/ShopGrid.tsx index c37d88d..143edd4 100644 --- a/components/organisms/shop-grid/ShopGrid.tsx +++ b/components/organisms/shop-grid/ShopGrid.tsx @@ -1,46 +1,46 @@ "use client"; -import { ShopCard } from "@/components/molecules/cards"; -import { MOCK_SHOPS } from "@/lib/constants"; +// import { ShopCard } from "@/components/molecules/cards"; +// import { MOCK_SHOPS } from "@/lib/constants"; -import type { ShopGridProps } from "./ShopGrid.types"; +// import type { ShopGridProps } from "./ShopGrid.types"; -export default function ShopGrid({ - searchName = "", - searchAddress = "", -}: ShopGridProps) { - const filtered = MOCK_SHOPS.filter((shop) => { - const matchesName = - searchName.trim() === "" || - shop.name.toLowerCase().includes(searchName.toLowerCase()); - const matchesAddress = - searchAddress.trim() === "" || - shop.address.toLowerCase().includes(searchAddress.toLowerCase()); - return matchesName && matchesAddress; - }); +// export default function ShopGrid({ +// searchName = "", +// searchAddress = "", +// }: ShopGridProps) { +// const filtered = MOCK_SHOPS.filter((shop) => { +// const matchesName = +// searchName.trim() === "" || +// shop.name.toLowerCase().includes(searchName.toLowerCase()); +// const matchesAddress = +// searchAddress.trim() === "" || +// shop.address.toLowerCase().includes(searchAddress.toLowerCase()); +// return matchesName && matchesAddress; +// }); - if (filtered.length === 0) { - return ( -
- -

- No shops found matching your search -

-
- ); - } +// if (filtered.length === 0) { +// return ( +//
+// +//

+// No shops found matching your search +//

+//
+// ); +// } - return ( -
- {filtered.map((shop) => ( - - ))} -
- ); -} +// return ( +//
+// {filtered.map((shop) => ( +// +// ))} +//
+// ); +// } diff --git a/components/organisms/shop-grid/index.ts b/components/organisms/shop-grid/index.ts index 481eebf..1359cdc 100644 --- a/components/organisms/shop-grid/index.ts +++ b/components/organisms/shop-grid/index.ts @@ -1,2 +1,2 @@ -export { default as ShopGrid } from "./ShopGrid"; +// export { default as ShopGrid } from "./ShopGrid"; export type { ShopGridProps } from "./ShopGrid.types";