Skip to content

Commit

Permalink
fix cant click calendar events
Browse files Browse the repository at this point in the history
  • Loading branch information
dtemkin1 committed Dec 2, 2024
1 parent d68022e commit 35203fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function useHydrant(): {
}, []);

const { colorMode, toggleColorMode } = useColorMode();

useEffect(() => {
if (loading || !hydrant) return;
// if colorScheme changes, change colorMode to match
Expand All @@ -83,7 +84,8 @@ function useHydrant(): {
}
};
hydrant?.updateState();
}, [colorMode, hydrant, loading, toggleColorMode]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [colorMode, hydrant, loading]);

return { hydrant, state };
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function Calendar(props: {
p={0.5}
lineHeight={1.3}
cursor="pointer"
// height="100%"
height="100%"
>
<Text
fontSize="sm"
Expand Down

0 comments on commit 35203fb

Please sign in to comment.