Date align #23
@@ -101,6 +101,11 @@ const Calender = (newDate?: UpdateCalendarProps): JSX.Element => {
|
|||||||
w="100%"
|
w="100%"
|
||||||
h="100%"
|
h="100%"
|
||||||
key={date}
|
key={date}
|
||||||
|
{...(isOverflow && {
|
||||||
|
_hover: {
|
||||||
|
cursor: "pointer"
|
||||||
|
}
|
||||||
|
})}
|
||||||
{...(isOverflow && {
|
{...(isOverflow && {
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
if (overflowDirection === "next") {
|
if (overflowDirection === "next") {
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ const CalenderContextProvider = ({
|
|||||||
|
|
||||||
thisWeek.forEach((e, i) => {
|
thisWeek.forEach((e, i) => {
|
||||||
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
|
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
|
||||||
|
|
||||||
const day: MonthDay = {
|
const day: MonthDay = {
|
||||||
...overflowInfo,
|
...overflowInfo,
|
||||||
date: sunCurrDate
|
date: sunCurrDate
|
||||||
@@ -222,8 +223,10 @@ const CalenderContextProvider = ({
|
|||||||
const thisWeek = mondays[week];
|
const thisWeek = mondays[week];
|
||||||
|
|
||||||
thisWeek.forEach((e, i) => {
|
thisWeek.forEach((e, i) => {
|
||||||
|
const overflowInfo = isOverflow(selectedDate, sunCurrDate);
|
||||||
|
|
||||||
const day: MonthDay = {
|
const day: MonthDay = {
|
||||||
isOverflow: isOverflow(selectedDate, monCurrDate),
|
...overflowInfo,
|
||||||
date: monCurrDate
|
date: monCurrDate
|
||||||
};
|
};
|
||||||
monCurrDate = add(monCurrDate, {
|
monCurrDate = add(monCurrDate, {
|
||||||
|
|||||||
Reference in New Issue
Block a user