Date align #23

Merged
LucidKobold merged 29 commits from date-align into main 2021-12-29 20:09:30 -05:00
18 changed files with 429 additions and 237 deletions
Showing only changes of commit 1c40d35cbe - Show all commits

View File

@@ -101,6 +101,11 @@ const Calender = (newDate?: UpdateCalendarProps): JSX.Element => {
w="100%"
h="100%"
key={date}
{...(isOverflow && {
_hover: {
cursor: "pointer"
}
})}
{...(isOverflow && {
onClick: () => {
if (overflowDirection === "next") {

View File

@@ -191,6 +191,7 @@ const CalenderContextProvider = ({
thisWeek.forEach((e, i) => {
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
const day: MonthDay = {
...overflowInfo,
date: sunCurrDate
@@ -222,8 +223,10 @@ const CalenderContextProvider = ({
const thisWeek = mondays[week];
thisWeek.forEach((e, i) => {
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
const day: MonthDay = {
isOverflow: isOverflow(selectedDate, monCurrDate),
...overflowInfo,
date: monCurrDate
};
monCurrDate = add(monCurrDate, {