Fixed key typing.

This commit is contained in:
Lucid Kobold
2022-01-03 14:35:52 -06:00
parent aae003c2a9
commit e88f0cb91c
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { Box, Text } from "@chakra-ui/react";
import { add, getYear, getMonth, sub, getDate } from "date-fns";
import { add, getYear, getMonth, sub, getDate,format } from "date-fns";
import router from "next/router";
import React, { Fragment } from "react";
import AddSticker from "./modals/AddSticker";
@@ -19,7 +19,7 @@ const Day = (
border={isOverflow ? "2px solid #181d8f" : "2px solid #0068ff"}
w="100%"
h="100%"
key={date}
key={format(date, "P")}
{...(isOverflow && {
_hover: {
cursor: "pointer"

View File

@@ -1,4 +1,4 @@
import { getDaysInMonth, getYear, getMonth, isBefore, setDate } from "date-fns";
import { getDaysInMonth, isBefore, setDate } from "date-fns";
/**
* This seeder is to simulate the date and sticker info from the database.