From f8637b53e9c20adba250f04fc11504547a64c27d Mon Sep 17 00:00:00 2001 From: JAEMOON Date: Thu, 26 Oct 2023 00:23:08 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20MyProfile=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=9A=B0=EC=84=A0=20=EC=BB=A4=EB=B0=8B...=20=EB=82=B4=EC=9D=BC?= =?UTF-8?q?=20=EB=8B=A4=EC=8B=9C=20=ED=95=98=EC=A6=88=EC=95=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/liked/index.tsx | 8 ++++---- public/icons/def_img.svg | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 public/icons/def_img.svg diff --git a/pages/liked/index.tsx b/pages/liked/index.tsx index 7c67069..034180d 100644 --- a/pages/liked/index.tsx +++ b/pages/liked/index.tsx @@ -66,8 +66,8 @@ export default function Liked({ roomInfo }: MyPostingProps) { if (result?.error) { setRooms([]); } else { - setRooms((prevRooms) => [...prevRooms, ...(result?.content || [])]); - setTotalElements(result?.totalElements || 0); + setRooms((prevRooms) => [...prevRooms, ...(result?.content || [])]); + setTotalElements(result?.totalElements || 0); } // if (target?.current) { // const observer = new IntersectionObserver(callback, options); @@ -129,7 +129,7 @@ export default function Liked({ roomInfo }: MyPostingProps) { const getChildData = async (childData: Record) => { makeFilters(childData); setPage(0); - //setRooms([]); + // setRooms([]); }; const openFilterPopup = () => { openModal({ @@ -207,7 +207,7 @@ export default function Liked({ roomInfo }: MyPostingProps) {
handleCardClick(room.id)} isLikedRooms />
- ))} + ))}
diff --git a/public/icons/def_img.svg b/public/icons/def_img.svg new file mode 100644 index 0000000..8780dcf --- /dev/null +++ b/public/icons/def_img.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + +