finished report page
This commit is contained in:
parent
e854bddfa8
commit
435d4fc5ad
@ -78,7 +78,7 @@ const CalendarComponent = () => {
|
||||
id="btn"
|
||||
>
|
||||
<img className={style.calendarIcon} src={calendarIcon} alt="" />
|
||||
{currentMonthAndDay()}
|
||||
{currentMonthAndDay(day)}
|
||||
</button>
|
||||
))
|
||||
)}
|
||||
|
@ -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');
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import calendarIcon from '../../images/calendar_icon.png';
|
||||
import ellipse from '../../images/ellipse.png';
|
||||
import remove from '../../images/remove.png';
|
||||
import addIcon from '../../images/addIcon.png';
|
||||
import { currentMonthAndDay } from '../Calendar/calendarHelper';
|
||||
import { currentMonthAndDayReportPage } from '../Calendar/calendarHelper';
|
||||
import InputsComponent from '../InputsComponent/InputsComponent';
|
||||
|
||||
const ReportForm = () => {
|
||||
@ -32,7 +32,7 @@ const ReportForm = () => {
|
||||
</div>
|
||||
<div className={style.reportForm__blockImg}>
|
||||
<img className={style.calendarIcon} src={calendarIcon} alt="" />
|
||||
{currentMonthAndDay()}
|
||||
{currentMonthAndDayReportPage()}
|
||||
</div>
|
||||
<div className={style.reportForm__tasks}>
|
||||
<img src={ellipse} alt="" />
|
||||
|
Loading…
Reference in New Issue
Block a user