From 68949175e76ac7880b67c61fa948379dd6445002 Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Tue, 30 Nov 2021 21:27:20 -0600 Subject: [PATCH] Formatting --- contexts/CalenderContext.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/contexts/CalenderContext.tsx b/contexts/CalenderContext.tsx index f58716b..db5add3 100644 --- a/contexts/CalenderContext.tsx +++ b/contexts/CalenderContext.tsx @@ -37,8 +37,12 @@ const CalenderContextProvider = ({ // Selected month & year const [selectedMonth, setSelectedMonth] = useState(today); - const [endOfSelectedMonth, SetEndOfSelectedDMonth] = useState(endOfMonth(selectedMonth)); - const [lastDayOfSelectedMonth, setLastDayOfSelectedMonth] = useState(getDate(endOfSelectedMonth)); + const [endOfSelectedMonth, SetEndOfSelectedDMonth] = useState( + endOfMonth(selectedMonth) + ); + const [lastDayOfSelectedMonth, setLastDayOfSelectedMonth] = useState( + getDate(endOfSelectedMonth) + ); const [daysOfMonth, setDaysOfMonth] = useState<[number] | [null]>([null]); @@ -87,16 +91,14 @@ const CalenderContextProvider = ({ //TODO: Create an object of arrays that will align with the days on the week. Make two sets for each start of the week setting. // Navigation - const prevMonth = (): void => { - - } + const prevMonth = (): void => {}; const calenderContextValues = { today, selectedMonth, daysOfMonth, daysOfWeek, - prevMonth + prevMonth, }; return (