Updated current components to use the new calender context. Added nav function to calender context.

This commit is contained in:
Lucid Kobold
2021-12-29 17:01:30 -06:00
parent 83b3285736
commit 679b443308
6 changed files with 57 additions and 35 deletions

View File

@@ -3,11 +3,11 @@ import { useRouter } from "next/router";
import { HStack, IconButton } from "@chakra-ui/react";
import { Icon } from "@iconify/react";
import { sub, add, format } from "date-fns";
import { CalenderContext } from "../../contexts/CalenderContext";
import DatePicker from "./DatePicker";
import { NewCalenderContext } from "../../contexts/NewCalenderContext";
const CalenderNav = (): JSX.Element => {
const { selectedDate } = useContext(CalenderContext);
const { selectedDate } = useContext(NewCalenderContext);
const router = useRouter();