From ee481158f016318221689d9aa3d8bead48a3afd2 Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Wed, 29 Dec 2021 11:41:28 -0600 Subject: [PATCH] Documentation for some functions. Removing uneeded info from context. Moved some items into functions if it was only being used for a single function. --- contexts/NewCalenderContext.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contexts/NewCalenderContext.tsx b/contexts/NewCalenderContext.tsx index 5e41675..d4391ec 100644 --- a/contexts/NewCalenderContext.tsx +++ b/contexts/NewCalenderContext.tsx @@ -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 => {