From 23ac995de5f4ffac76ed7eabc5f7e22fa1d36e6b Mon Sep 17 00:00:00 2001 From: nasubi916 Date: Mon, 4 Nov 2024 17:04:33 +0900 Subject: [PATCH] mini --- src/routes/overview/-components/HalfModal.tsx | 14 +++++++------- src/routes/overview/index.tsx | 4 +--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/routes/overview/-components/HalfModal.tsx b/src/routes/overview/-components/HalfModal.tsx index 21dac9d..c2842b9 100644 --- a/src/routes/overview/-components/HalfModal.tsx +++ b/src/routes/overview/-components/HalfModal.tsx @@ -24,13 +24,13 @@ export function HalfModal({ const prevProjectId = usePrevious(projectId); - useEffect(() => { - if (prevProjectId !== projectId) { - setOpen(true); - } - if (prevProjectId !== projectId && projectId === "") { - setOpen(false); - } + useEffect(() => { + if (prevProjectId !== projectId) { + setOpen(true); + } + if (prevProjectId !== projectId && projectId === "") { + setOpen(false); + } }, [projectId]); return ( diff --git a/src/routes/overview/index.tsx b/src/routes/overview/index.tsx index 95bcb77..1205389 100644 --- a/src/routes/overview/index.tsx +++ b/src/routes/overview/index.tsx @@ -64,9 +64,7 @@ export const Route = createFileRoute("/overview/")({ }, []); return ( - +