finished report page

This commit is contained in:
Hope87
2021-06-23 12:48:02 +03:00
parent e854bddfa8
commit 435d4fc5ad
3 changed files with 7 additions and 7 deletions

View File

@ -78,7 +78,7 @@ const CalendarComponent = () => {
id="btn"
>
<img className={style.calendarIcon} src={calendarIcon} alt="" />
{currentMonthAndDay()}
{currentMonthAndDay(day)}
</button>
))
)}

View File

@ -26,10 +26,10 @@ export function currentMonth() {
return currentMonth.charAt(0).toUpperCase() + currentMonth.slice(1);
}
// export function currentMonthAndDay(day) {
// return day.format('D MMMM');
// }
export function currentMonthAndDay(day) {
return day.format('D MMMM');
}
export function currentMonthAndDay() {
export function currentMonthAndDayReportPage() {
return moment().format('D MMMM');
}