Basic modal for add sticker component.

This commit is contained in:
Lucid Kobold
2022-01-01 19:51:17 -06:00
parent 975a433273
commit 9a3ad8ac95
3 changed files with 48 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import CalenderNav from "./CalenderNav";
import { CalenderContext } from "../../contexts/CalenderContext";
import { getDate, sub, add, getYear, getMonth } from "date-fns";
import { useRouter } from "next/router";
import AddSticker from "./modals/AddSticker";
// TODO: import types
interface UpdateCalendarProps {
@@ -119,6 +120,7 @@ const Calender = (newDate?: UpdateCalendarProps): JSX.Element => {
})}
>
<Text w="100%" h="100%">
{!isOverflow && <AddSticker />}
{`Day ${getDate(date)}`}
</Text>
</Box>