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:
Anmol Singh Bhatia 2023-03-30 12:09:11 +05:30 committed by GitHub
parent fb01e6d22c
commit 06fb3e9b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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;
};