Merge pull request #45 from apuc/viewReportPage
preLoader and validate report form
This commit is contained in:
commit
84b2ceb355
BIN
src/images/arrowViewReport.png
Normal file
BIN
src/images/arrowViewReport.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 183 B |
@ -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 &&
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user