fix: calendar view bugs (#600)
* fix: text turncate added for issue * fix: next week btn fix, style:calendar cell height fix
This commit is contained in:
parent
fb01e6d22c
commit
06fb3e9b58
2 changed files with 4 additions and 4 deletions
|
|
@ -149,13 +149,13 @@ export const isSameYear = (yearString: string, date: Date) => {
|
|||
};
|
||||
|
||||
export const addSevenDaysToDate = (date: Date) => {
|
||||
const currentDate = date;
|
||||
const currentDate = new Date(date);
|
||||
const newDate = new Date(currentDate.setDate(currentDate.getDate() + 7));
|
||||
return newDate;
|
||||
};
|
||||
|
||||
export const subtract7DaysToDate = (date: Date) => {
|
||||
const currentDate = date;
|
||||
const currentDate = new Date(date);
|
||||
const newDate = new Date(currentDate.getTime() - 7 * 24 * 60 * 60 * 1000);
|
||||
return newDate;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue