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>
<div onClick={() => nextDay()}>
<Link to={`../view/${getCreatedDate(nextReportDay)}`}>
<div
className={`viewReport__switchDate__next switchDate ${
getCreatedDate(currentDay) === getCreatedDate(nextReportDay)
? "disable"
: ""
onClick={() => nextDay()}
className={`${
getCreatedDate(currentDay) === dateReport.id ? "disable" : ""
}`}
>
<Link to={`../view/${getCreatedDate(nextReportDay)}`}>
<div className={`viewReport__switchDate__next switchDate`}>
<img src={arrowSwitchDate} alt="arrow" />
</div>
</Link>