fix calendar

This commit is contained in:
Victor Batischev 2023-12-04 20:13:10 +03:00
parent db9a7b24c6
commit 4e15f79c76
3 changed files with 11 additions and 23 deletions

View File

@ -61,9 +61,7 @@ const Calendar = () => {
</div>
<div>
<Link to="/report">
<button className="calendar__btn">
Заполнить отчет за день
</button>
<button className="calendar__btn">Заполнить отчет</button>
</Link>
</div>
</div>

View File

@ -165,6 +165,11 @@
justify-content: center;
font-weight: 500;
font-size: 12px;
@media (max-width: 500px) {
font-size: 10px;
font-weight: 400;
}
}
img {
@ -181,20 +186,8 @@
}
}
@media (max-width: 1200px) {
width: 90px;
height: 40px;
}
@media (max-width: 968px) {
width: 62px;
height: 40px;
font-size: 10px;
@media (max-width: 610px) {
width: auto;
height: auto;
}
}
@media (max-width: 610px) {
@ -294,12 +287,11 @@
.select {
border-radius: 5px;
border: 1px solid #c4c4c4;
border: 2px solid #c4c4c4;
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
padding: 5px 8px;
cursor: pointer;
text-align: center;
min-width: 350px;
}
.close {

View File

@ -64,8 +64,8 @@ export const ProfileCalendar = () => {
}
apiRequest(
`/reports/reports-by-date?${requestDates}&user_card_id=${localStorage.getItem(
"cardId",
)}`,
"cardId"
)}`
).then((reports) => {
let spendTime = 0;
for (const report of reports) {
@ -110,11 +110,9 @@ export const ProfileCalendar = () => {
<Link to="/report">
<button
className="calendar__btn"
onClick={() => {
dispatch(setReportDate(""));
}}
onClick={() => dispatch(setReportDate(""))}
>
Заполнить отчет за день
Заполнить отчет
</button>
</Link>
</div>