Skip to content

Commit

Permalink
Merge pull request #113 from TRIP-Side-Project/Emma-Hyejin-patch-1
Browse files Browse the repository at this point in the history
Fix: ProducList 파일 배포 에러 수정
  • Loading branch information
Emma-Hyejin authored Dec 26, 2023
2 parents 1e789ff + e4f4494 commit e933021
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/ProductList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ProductListItems from "@/components/productListItems/ProductListItems";
const ProductList = () => {
// 동적 화면 상태
const [innerWidth, setInnerWidth] = useState(window.innerWidth);
const [, setSearch] = useState("");
useEffect(() => {
const resizeListener = () => {
setInnerWidth(window.innerWidth);
Expand Down Expand Up @@ -35,7 +36,7 @@ const ProductList = () => {
</h1>
{innerWidth > 768 && (
<>
<Search />
<Search setSearch={setSearch} />
<div className="flex gap-2 px-3 pb-1 text-base border-b border-DARK_GRAY_COLOR">
<span
className={isSort ? viewSortClass : nonViewSortClass}
Expand All @@ -54,7 +55,7 @@ const ProductList = () => {
)}
{innerWidth <= 768 && (
<div className="flex items-center justify-between">
<Search />
<Search setSearch={setSearch} />
<div className="flex pb-1 text-sm border-b border-DARK_GRAY_COLOR">
<span
className={isSort ? viewSortClass : nonViewSortClass}
Expand Down

0 comments on commit e933021

Please sign in to comment.