From 98eb67917c5c6811cd34f18b3ff1d04feafdb0c9 Mon Sep 17 00:00:00 2001 From: jungmyunggi Date: Tue, 7 Jan 2025 18:27:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A7=BC=20clean:=20if=EB=AC=B8=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC,=20=ED=83=80=EC=9E=85=20=EB=8C=80=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/chart/BarChartItem.tsx | 2 +- client/src/components/chat/ChatItem.tsx | 2 +- client/src/hooks/queries/useSearch.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/chart/BarChartItem.tsx b/client/src/components/chart/BarChartItem.tsx index 2cba122..5f72e76 100644 --- a/client/src/components/chart/BarChartItem.tsx +++ b/client/src/components/chart/BarChartItem.tsx @@ -20,7 +20,7 @@ export default function BarChartItem({ data, title, description, color }: BarTyp useEffect(() => { const resizeObserver = new ResizeObserver((entries) => { - for (let entry of entries) { + for (const entry of entries) { setComponentWidth(entry.contentRect.width); } }); diff --git a/client/src/components/chat/ChatItem.tsx b/client/src/components/chat/ChatItem.tsx index 7e861d8..f5af9fb 100644 --- a/client/src/components/chat/ChatItem.tsx +++ b/client/src/components/chat/ChatItem.tsx @@ -9,7 +9,7 @@ import { ChatType } from "@/types/chat"; type ChatItemProps = { chatItem: ChatType; - isSameUser: Boolean; + isSameUser: boolean; }; const chatStyle = "p-3 bg-gray-200 text-black break-words whitespace-pre-wrap rounded-md inline-block max-w-[90%]"; export default function ChatItem({ chatItem, isSameUser }: ChatItemProps) { diff --git a/client/src/hooks/queries/useSearch.ts b/client/src/hooks/queries/useSearch.ts index 64ac636..6b35a1f 100644 --- a/client/src/hooks/queries/useSearch.ts +++ b/client/src/hooks/queries/useSearch.ts @@ -18,7 +18,7 @@ export const useSearch = ({ query, filter, page, pageSize }: SearchRequest) => { handler(query); return () => { - handler.cancel && handler.cancel(); + if (handler.cancel) handler.cancel(); }; }, [query]); From ef032592fce11c3cab234df8b1b94918047d4165 Mon Sep 17 00:00:00 2001 From: jungmyunggi Date: Wed, 8 Jan 2025 21:28:39 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20docs:=20gitignore=EC=97=90?= =?UTF-8?q?=20scannerwork=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.gitignore b/client/.gitignore index 8a5485c..d5383e8 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -23,7 +23,7 @@ dist-ssr *.sln *.sw? .env - +.scannerwork # vite test coverage /coverage