From 60eaaec20bfb61d9a330e5bb998891611ad22c53 Mon Sep 17 00:00:00 2001 From: harry kim <73218463+hanyugeon@users.noreply.github.com> Date: Thu, 25 Jul 2024 01:01:44 +0900 Subject: [PATCH] =?UTF-8?q?[#665]=20[=EB=8F=84=EC=84=9C=20=EA=B2=80?= =?UTF-8?q?=EC=83=89]=20=EC=B5=9C=EA=B7=BC=20=EA=B2=80=EC=83=89=EC=96=B4?= =?UTF-8?q?=20=EC=A1=B4=EC=9E=AC=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9D=84?= =?UTF-8?q?=EB=95=8C=20UI=20=EC=88=98=EC=A0=95=20#666?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 로그인한 유저 최근 검색어가 없을 때 "검색 기록이 없어요!" 문구 보이게 수정 (#666) --- src/components/bookSearch/RecentSearchList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/bookSearch/RecentSearchList.tsx b/src/components/bookSearch/RecentSearchList.tsx index 1e9a20ed..5a47ca5f 100644 --- a/src/components/bookSearch/RecentSearchList.tsx +++ b/src/components/bookSearch/RecentSearchList.tsx @@ -9,10 +9,12 @@ type RecentSearchListProps = { }; const RecentSearchList = ({ keywords, onClick }: RecentSearchListProps) => { + const hasKeywords = keywords && keywords?.length !== 0; + return (

최근 검색어

- {keywords ? ( + {hasKeywords ? (