Documentation for some functions. Removing uneeded info from context. Moved some items into functions if it was only being used for a single function.

This commit is contained in:
Lucid Kobold
2021-12-29 11:41:28 -06:00
parent 11c8010515
commit ee481158f0

View File

@@ -115,7 +115,9 @@ const NewCalenderContextProvider = ({
};
/**
* A function that will return a month layout when given a date. It produces an object with 6 weeks that include overflow from the previous and next month with all dates aligned with the day of the week.
* A function that will return a month layout when given a date. It produces
* an object with 6 weeks that include overflow from the previous and next month
* with all dates aligned with the day of the week.
* @param selectedDate The date of the month to generate a month layout for.
*/
const populateMonth = (selectedDate: Date): MonthLayout => {