commit
7e97b20341
@ -67,7 +67,6 @@ export const ViewReport = () => {
|
|||||||
|
|
||||||
function nextDay() {
|
function nextDay() {
|
||||||
reportDay.setDate(reportDay.getDate() + 1);
|
reportDay.setDate(reportDay.getDate() + 1);
|
||||||
getCreatedDate(reportDay)
|
|
||||||
getReportFromDate(getCreatedDate(reportDay))
|
getReportFromDate(getCreatedDate(reportDay))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +101,7 @@ export const ViewReport = () => {
|
|||||||
<img src={arrowSwitchDate} alt='arrow'/>
|
<img src={arrowSwitchDate} alt='arrow'/>
|
||||||
</div>
|
</div>
|
||||||
<p>{getCreatedDate(reportDay)}</p>
|
<p>{getCreatedDate(reportDay)}</p>
|
||||||
<div className={`viewReport__switchDate__next switchDate ${getCreatedDate(currentDay) === getCreatedDate(reportDay) || getCreatedDate(currentDay) < getCreatedDate(reportDay) ? 'disable' : ''}`} onClick={() => nextDay()}>
|
<div className={`viewReport__switchDate__next switchDate ${getCreatedDate(currentDay) === getCreatedDate(reportDay) ? 'disable' : ''}`} onClick={() => nextDay()}>
|
||||||
<img src={arrowSwitchDate} alt='arrow'/>
|
<img src={arrowSwitchDate} alt='arrow'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user