From d8d2c9139c9e0aaaff3c48058524d5a0b045e9be Mon Sep 17 00:00:00 2001 From: Lucid Kobold Date: Thu, 10 Feb 2022 00:59:24 -0600 Subject: [PATCH] Remove unused variables. --- contexts/CalenderContext.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/contexts/CalenderContext.tsx b/contexts/CalenderContext.tsx index e135e1e..acb60fb 100644 --- a/contexts/CalenderContext.tsx +++ b/contexts/CalenderContext.tsx @@ -11,7 +11,6 @@ import { isBefore, compareAsc } from "date-fns"; -import stickersSeeder from "../data/stickerSeeder"; const CalenderContext = createContext({} as CalenderContextState); @@ -73,8 +72,6 @@ const CalenderContextProvider = ({ return { isOverflow: flag, overflowDirection: direction }; }; - const [month /*, setMonth*/] = useState(stickersSeeder()); - /** * 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 @@ -127,9 +124,6 @@ const CalenderContextProvider = ({ thisWeek.forEach((e, i) => { const overflowInfo = isOverflow(selectedDate, sunCurrDate); - const stickerDay = overflowInfo.isOverflow - ? null - : month[getDate(sunCurrDate) - 1]; const day: MonthDay = { ...overflowInfo, @@ -164,9 +158,6 @@ const CalenderContextProvider = ({ thisWeek.forEach((e, i) => { const overflowInfo = isOverflow(selectedDate, monCurrDate); - const stickerDay = overflowInfo.isOverflow - ? null - : month[getDate(monCurrDate) - 1]; const day: MonthDay = { ...overflowInfo,