Fixed date height.

This commit is contained in:
Lucid Kobold
2021-12-29 19:00:14 -06:00
parent 1c40d35cbe
commit 958affc5b6

View File

@@ -37,17 +37,8 @@ const Calender = (newDate?: UpdateCalendarProps): JSX.Element => {
const currMonth = layout[`${userSettings.startOfWeek.toLowerCase()}`];
const { month, weekdays } = currMonth;
const [height, setHeight] = useState<string>("0px");
useEffect(() => {
if (window) {
const height = window.innerHeight - 60;
setHeight(`${height}px`);
}
}, []);
return (
<VStack h={height} w="100%">
<VStack h="91vh" w="100%">
<CalenderNav />
<HStack
px={6}