preLoader and validate report form

This commit is contained in:
Николай Полтщук 2023-01-24 19:22:16 +03:00
parent ffae420834
commit df7587e048
3 changed files with 8 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

View File

@ -10,7 +10,7 @@ import {ProfileHeader} from "../../components/ProfileHeader/ProfileHeader";
import {Footer} from "../../components/Footer/Footer"; import {Footer} from "../../components/Footer/Footer";
import arrow from "../../images/right-arrow.png"; import arrow from "../../images/right-arrow.png";
import arrowSwitchDate from "../../images/arrowViewReport.svg"; import arrowSwitchDate from "../../images/arrowViewReport.png";
import './viewReport.scss' import './viewReport.scss'
@ -102,11 +102,11 @@ export const ViewReport = () => {
</div> </div>
<div className='viewReport__switchDate'> <div className='viewReport__switchDate'>
<div className='viewReport__switchDate__prev switchDate' onClick={() => previousDay()}> <div className='viewReport__switchDate__prev switchDate' onClick={() => previousDay()}>
<SVG src={arrowSwitchDate}/> <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) ? 'disable' : ''}`} onClick={() => nextDay()}> <div className={`viewReport__switchDate__next switchDate ${getCreatedDate(currentDay) === getCreatedDate(reportDay) ? 'disable' : ''}`} onClick={() => nextDay()}>
<SVG src={arrowSwitchDate}/> <img src={arrowSwitchDate} alt='arrow'/>
</div> </div>
</div> </div>
{loader && {loader &&

View File

@ -136,6 +136,10 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
img {
margin-left: 3px;
}
} }
&__prev { &__prev {
@ -145,7 +149,7 @@
.disable { .disable {
pointer-events: none; pointer-events: none;
opacity: 0.5; opacity: 0.3;
} }
.loader { .loader {