Calender nav #42

Merged
LucidKobold merged 20 commits from calender-nav into main 2022-03-27 02:48:04 -04:00
7 changed files with 151 additions and 127 deletions
Showing only changes of commit 94ffe42325 - Show all commits

View File

@@ -34,13 +34,6 @@ 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.
* (Creation date of a chart)
*/
return (
<HStack spacing={10} as="nav" w="auto" h="10vh" textAlign="center">
<IconButton

View File

@@ -206,8 +206,6 @@ const CalenderContextProvider = ({
setSelectedMonthInfo(output);
};
// TODO: Make a function that will give the valid date range for the front end. Either starting at the chart creation date or the oldest month with stickers (when enabled in filters).
const setValidDateRange = (): ValidDateRange => {
const currDate = new Date(); // Current date.
const startDate = startOfMonth(currDate); // Will eventually be the creation date of the account or the creation date of the oldest chart within the account. Whichever is older.