Finish working in report page

This commit is contained in:
MaxOvs19 2023-05-18 18:38:02 +03:00
parent b45dc0283c
commit 152d4a257f

View File

@ -135,15 +135,14 @@ export const ViewReport = () => {
<p>{getCorrectDate(dateReport.id)}</p> <p>{getCorrectDate(dateReport.id)}</p>
<div onClick={() => nextDay()}> <div
onClick={() => nextDay()}
className={`${
getCreatedDate(currentDay) === dateReport.id ? "disable" : ""
}`}
>
<Link to={`../view/${getCreatedDate(nextReportDay)}`}> <Link to={`../view/${getCreatedDate(nextReportDay)}`}>
<div <div className={`viewReport__switchDate__next switchDate`}>
className={`viewReport__switchDate__next switchDate ${
getCreatedDate(currentDay) === getCreatedDate(nextReportDay)
? "disable"
: ""
}`}
>
<img src={arrowSwitchDate} alt="arrow" /> <img src={arrowSwitchDate} alt="arrow" />
</div> </div>
</Link> </Link>