Added more todos.

This commit is contained in:
Lucid Kobold
2022-01-05 12:54:11 -06:00
parent 628b0ce9f3
commit 342507ad05
4 changed files with 29 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ const CalenderNav = (): JSX.Element => {
}
};
/**
* TODO: Add logic to remove the nav buttons.
* Do not show next button for current month.
* Do not show prev when there is nothing left to see in the past.
*/
return (
<HStack spacing={10} as="nav" w="auto" h="10vh" textAlign="center">
<IconButton

View File

@@ -47,6 +47,12 @@ const Day = (props: DayProps): JSX.Element => {
// This handles the modal for this date.
const [isOpen, setIsOpen] = useState<boolean>(false);
/**
* TODO: Add logic to remove the onClick within overflow dates.
* Do not give dates for the next month an onClick.
* Do not give dates in the past an onClick there is nothing before that month.
*/
return (
<Fragment>
{isOverflow && (