Skip to content

Commit

Permalink
mini
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Nov 4, 2024
1 parent 5275384 commit 23ac995
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/routes/overview/-components/HalfModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 1 addition & 3 deletions src/routes/overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ export const Route = createFileRoute("/overview/")({
}, []);

return (
<p.div
h="calc(100dvh - 70px)"
>
<p.div h="calc(100dvh - 70px)">
<Map
currentUserLocation={currentUserLocation}
setProjectId={setProjectId}
Expand Down

0 comments on commit 23ac995

Please sign in to comment.