Remove outdated todos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user