Compare commits
No commits in common. "1fd6a736521086001bf1e7a2dc216021b83e0a46" and "8a2876e30bbb0b0148f00362acaf4c57f8da5829" have entirely different histories.
1fd6a73652
...
8a2876e30b
16
src/App.js
16
src/App.js
@ -106,15 +106,22 @@ const App = () => {
|
||||
<Route exact path="/candidate/:id/form" element={<FormPage />} />
|
||||
<Route path="/:userId/calendar" element={<Calendar />} />
|
||||
|
||||
<Route exact path="/report" element={<ReportForm />} />
|
||||
<Route path="/report/:id" element={<SingleReportPage />} />
|
||||
|
||||
<Route exact path="quiz">
|
||||
<Route index element={<QuizPage />} />
|
||||
<Route exact path="test/:uuid" element={<PassingTests />} />
|
||||
<Route exact path="report/:uuid" element={<QuizReportPage />} />
|
||||
</Route>
|
||||
|
||||
<Route exact path="profile">
|
||||
<Route index element={<Profile />} />
|
||||
<Route exact path="catalog" element={<Home />} />
|
||||
<Route exact path="calendar" element={<ProfileCalendar />} />
|
||||
<Route exact path="calendar/report" element={<ReportForm />} />
|
||||
<Route exact path="calendar/view/:date/:id" element={<ViewReport />} />
|
||||
<Route exact path="calendar/view/" element={<ProfileCalendar />} />
|
||||
<Route exact path="summary" element={<Summary />} />
|
||||
<Route exact path="view/:date/:id" element={<ViewReport />} />
|
||||
<Route exact path="tracker" element={<Tracker />} />
|
||||
<Route exact path="statistics/:id" element={<Statistics/>}/>
|
||||
<Route exact path="payouts" element={<Payouts />} />
|
||||
@ -126,11 +133,6 @@ const App = () => {
|
||||
<Route exact path="employees" element={<PartnerCategories />} />
|
||||
<Route exact path="employees/report/:uuid" element={<PartnerEmployeeReport />} />
|
||||
<Route exact path="treaties" element={<PartnerTreaties />} />
|
||||
<Route exact path="quiz">
|
||||
<Route index element={<QuizPage />} />
|
||||
<Route exact path="test/:uuid" element={<PassingTests />} />
|
||||
<Route exact path="report/:uuid" element={<QuizReportPage />} />
|
||||
</Route>
|
||||
|
||||
<Route
|
||||
exact
|
||||
|
@ -24,13 +24,9 @@ const ArchiveTableTracker = ({ filterCompleteTasks, loader }) => {
|
||||
);
|
||||
})
|
||||
) : (
|
||||
<tr>
|
||||
<td>
|
||||
<div className="archive__noItem">
|
||||
<p>В данном месяце у вас не было задач</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<div className="archive__noItem">
|
||||
<p>В данном месяце у вас не было задач</p>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
@ -167,8 +167,12 @@
|
||||
top: -20px;
|
||||
|
||||
@media (max-width: 900px) {
|
||||
top: 100px;
|
||||
order: 1;
|
||||
position: inherit;
|
||||
right: inherit;
|
||||
top: inherit;
|
||||
max-width: 115px;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ const Calendar = () => {
|
||||
<img className="calendar__title-img" src={rectangle} alt="img" />
|
||||
</div>
|
||||
<div>
|
||||
<Link to="/profile/calendar/report">
|
||||
<Link to="/report">
|
||||
<button className="calendar__btn">Заполнить отчет</button>
|
||||
</Link>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
.calendar-component {
|
||||
position: relative;
|
||||
margin: 10px 0;
|
||||
margin: 30px 0;
|
||||
background-color: #f9f9f9;
|
||||
padding: 20px 30px;
|
||||
font-family: "LabGrotesque", sans-serif;
|
||||
@ -94,7 +94,7 @@
|
||||
}
|
||||
|
||||
&__rectangle {
|
||||
margin: 10px 0;
|
||||
margin: 20px 0;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
|
@ -48,7 +48,7 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:focus, a.active {
|
||||
a:focus {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
@ -133,9 +133,9 @@
|
||||
.edit-project,
|
||||
.add-worker,
|
||||
.edit-column {
|
||||
// background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%);
|
||||
background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%);
|
||||
.title-project {
|
||||
margin-top: 8px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.button-add {
|
||||
margin-top: 8px;
|
||||
|
@ -1,8 +1,8 @@
|
||||
.error-login {
|
||||
position: relative;
|
||||
padding: 30px;
|
||||
padding: 54px 76px;
|
||||
background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
|
||||
border-radius: 20px;
|
||||
border-radius: 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@ -15,7 +15,9 @@
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 15px;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
width: 176px;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
margin-bottom: 30px;
|
||||
|
@ -616,7 +616,7 @@ export const TicketFullScreen = () => {
|
||||
<div className="tracker__tabs__head">
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab active-tab"
|
||||
className="tab active-tab projectsTab"
|
||||
onClick={() => toggleTabs(1)}
|
||||
>
|
||||
<img src={project} alt="img" />
|
||||
@ -624,7 +624,7 @@ export const TicketFullScreen = () => {
|
||||
</Link>
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab"
|
||||
className="tab tasksTab"
|
||||
onClick={() => toggleTabs(2)}
|
||||
>
|
||||
<img src={tasks} alt="img" />
|
||||
@ -632,7 +632,7 @@ export const TicketFullScreen = () => {
|
||||
</Link>
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab"
|
||||
className="tab archiveTab"
|
||||
onClick={() => toggleTabs(3)}
|
||||
>
|
||||
<img src={archive} alt="img" />
|
||||
@ -972,7 +972,7 @@ export const TicketFullScreen = () => {
|
||||
</div>
|
||||
<div className="time">
|
||||
<img src={watch}></img>
|
||||
<span>Длительность: </span>
|
||||
<span>Длительность : </span>
|
||||
<p>
|
||||
{correctTimerTime(currentTimerCount.hours)}:
|
||||
{correctTimerTime(currentTimerCount.minute)}:
|
||||
|
@ -70,7 +70,6 @@ export const TrackerModal = ({
|
||||
const [workers, setWorkers] = useState([]);
|
||||
const [selectWorkersOpen, setSelectWorkersOpen] = useState(false);
|
||||
const [selectedWorker, setSelectedWorker] = useState(null);
|
||||
const [emailWorker, setEmailWorker] = useState("");
|
||||
const [selectColumnPriority, setSelectColumnPriority] = useState(
|
||||
"Выберите приоритет колонки"
|
||||
);
|
||||
@ -306,19 +305,6 @@ export const TrackerModal = ({
|
||||
});
|
||||
}
|
||||
|
||||
function inviteUserByEmail() {
|
||||
apiRequest("/project/add-user-by-email", {
|
||||
method: "POST",
|
||||
data: {
|
||||
email: emailWorker,
|
||||
project_id: projectBoard.id
|
||||
}
|
||||
}).then((el) => {
|
||||
setActive(false);
|
||||
setEmailWorker("");
|
||||
});
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
modalType === "add-worker"
|
||||
? apiRequest("/project/my-employee").then((el) => {
|
||||
@ -400,12 +386,26 @@ export const TrackerModal = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<ModalLayout active={active} setActive={setActive} type={modalType}>
|
||||
<ModalLayout
|
||||
active={active}
|
||||
setActive={setActive}
|
||||
type={modalType}
|
||||
// onClick={() => {
|
||||
// setSelectWorkersOpen(false);
|
||||
// }}
|
||||
>
|
||||
{modalType === "add-worker" && (
|
||||
<>
|
||||
<div className="select__person">
|
||||
<div className="title-project select-person">
|
||||
<h4>Добавьте участника</h4>
|
||||
{/*<div className="input-container">*/}
|
||||
{/* <input*/}
|
||||
{/* className="name-project"*/}
|
||||
{/* value={emailWorker}*/}
|
||||
{/* onChange={(e) => setEmailWorker(e.target.value)}*/}
|
||||
{/* />*/}
|
||||
{/*</div>*/}
|
||||
<p className="select-person__info">
|
||||
Выберите пользователя в проекте или добавьте по e-mail
|
||||
</p>
|
||||
@ -468,14 +468,9 @@ export const TrackerModal = ({
|
||||
className="name-project"
|
||||
placeholder="e-mail"
|
||||
type="email"
|
||||
value={emailWorker}
|
||||
onChange={(e) => setEmailWorker(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<BaseButton
|
||||
styles={"button-add invite-person-block__btn"}
|
||||
onClick={inviteUserByEmail}
|
||||
>
|
||||
<BaseButton styles={"button-add invite-person-block__btn"}>
|
||||
Отправить приглашение
|
||||
</BaseButton>
|
||||
</div>
|
||||
@ -499,6 +494,11 @@ export const TrackerModal = ({
|
||||
alt="avatar"
|
||||
/>
|
||||
</div>
|
||||
{/*<span>Этап</span>*/}
|
||||
{/*<div className="createTaskHead__selectColumn">*/}
|
||||
{/* <span>Backlog</span>*/}
|
||||
{/* <img src={arrowCreateTask} alt="arrow" />*/}
|
||||
{/*</div>*/}
|
||||
</div>
|
||||
<div className="createTaskBody">
|
||||
<div className="createTaskBody__left">
|
||||
@ -793,49 +793,55 @@ export const TrackerModal = ({
|
||||
{modalType === "edit-column" && (
|
||||
<div>
|
||||
<div className="title-project">
|
||||
<div>
|
||||
<h4>Название колонки</h4>
|
||||
<div className="input-container">
|
||||
<input
|
||||
className="name-project"
|
||||
value={columnName}
|
||||
onChange={(e) => dispatch(setColumnName(e.target.value))}
|
||||
/>
|
||||
</div>
|
||||
<h4>Введите новое название</h4>
|
||||
<div className="input-container">
|
||||
<input
|
||||
className="name-project"
|
||||
value={columnName}
|
||||
onChange={(e) => dispatch(setColumnName(e.target.value))}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Приоритет колонки</h4>
|
||||
<div
|
||||
className={
|
||||
selectColumnPriorityOpen
|
||||
? "select-priority select-priority--open"
|
||||
: "select-priority"
|
||||
}
|
||||
onClick={() =>
|
||||
setSelectColumnPriorityOpen(!selectColumnPriorityOpen)
|
||||
}
|
||||
>
|
||||
<span>{selectColumnPriority}</span>
|
||||
<img src={arrowDown} alt="arrow" />
|
||||
{selectColumnPriorityOpen && (
|
||||
<div className="select-priority__dropDown">
|
||||
{projectBoard.columns.map((column, index) => {
|
||||
return (
|
||||
<span
|
||||
key={column.id}
|
||||
onClick={() => {
|
||||
setSelectColumnPriority(index + 1);
|
||||
dispatch(setColumnPriority(index + 1));
|
||||
}}
|
||||
>
|
||||
{index + 1}
|
||||
</span>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<h4>Приоритет колонки</h4>
|
||||
<div
|
||||
className={
|
||||
selectColumnPriorityOpen
|
||||
? "select-priority select-priority--open"
|
||||
: "select-priority"
|
||||
}
|
||||
onClick={() =>
|
||||
setSelectColumnPriorityOpen(!selectColumnPriorityOpen)
|
||||
}
|
||||
>
|
||||
<span>{selectColumnPriority}</span>
|
||||
<img src={arrowDown} alt="arrow" />
|
||||
{selectColumnPriorityOpen && (
|
||||
<div className="select-priority__dropDown">
|
||||
{projectBoard.columns.map((column, index) => {
|
||||
return (
|
||||
<span
|
||||
key={column.id}
|
||||
onClick={() => {
|
||||
setSelectColumnPriority(index + 1);
|
||||
dispatch(setColumnPriority(index + 1));
|
||||
}}
|
||||
>
|
||||
{index + 1}
|
||||
</span>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{/*<div className="input-container">*/}
|
||||
{/* <input*/}
|
||||
{/* className="name-project"*/}
|
||||
{/* placeholder="Приоритет колонки"*/}
|
||||
{/* type="number"*/}
|
||||
{/* step="1"*/}
|
||||
{/* value={columnPriority}*/}
|
||||
{/* onChange={(e) => dispatch(setColumnPriority(e.target.value))}*/}
|
||||
{/* />*/}
|
||||
{/*</div>*/}
|
||||
</div>
|
||||
<BaseButton styles={"button-add"} onClick={changeColumnParams}>
|
||||
Сохранить
|
||||
|
@ -30,12 +30,13 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
row-gap: 12px;
|
||||
padding-bottom: 15px;
|
||||
row-gap: 8px;
|
||||
padding-bottom: 10px;
|
||||
|
||||
.select-priority {
|
||||
background-color: white;
|
||||
width: 100%;
|
||||
margin: 12px 0;
|
||||
padding: 10px 8px;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { useState } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { NavLink } from "react-router-dom";
|
||||
|
||||
import { getProfileInfo } from "@redux/outstaffingSlice";
|
||||
@ -9,8 +9,9 @@ import { urlForLocal } from "@utils/helper";
|
||||
import avatarMok from "assets/images/avatarMok.png";
|
||||
|
||||
export const Navigation = () => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const profileInfo = useSelector(getProfileInfo);
|
||||
const currentPath = window.location.pathname;
|
||||
const [user] = useState(
|
||||
localStorage.getItem("role_status") === "18" ? "partner" : "developer"
|
||||
);
|
||||
@ -34,7 +35,7 @@ export const Navigation = () => {
|
||||
name: "Выплаты"
|
||||
},
|
||||
{
|
||||
path: "/quiz",
|
||||
path: "/Quiz",
|
||||
name: "Тесты"
|
||||
},
|
||||
{
|
||||
@ -70,17 +71,32 @@ export const Navigation = () => {
|
||||
]
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (localStorage.getItem("role_status") === "18") {
|
||||
return;
|
||||
}
|
||||
// if (Object.keys(profileInfo).length) {
|
||||
// return;
|
||||
// }
|
||||
// apiRequest(`/user/me`).then((profileInfo) =>
|
||||
// dispatch(
|
||||
// setProfileInfo(
|
||||
// profileInfo.userCard ? profileInfo.userCard : profileInfo
|
||||
// )
|
||||
// )
|
||||
// );
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="profile-header__info">
|
||||
<div className="profile-header__container">
|
||||
<nav className="profile-header__nav">
|
||||
<div className="profileHeader__info">
|
||||
<div className="profileHeader__container">
|
||||
<nav className="profileHeader__nav">
|
||||
{navInfo[user].map((link, index) => {
|
||||
return (
|
||||
<NavLink
|
||||
key={index}
|
||||
end
|
||||
to={link.path === "/Quiz" ? link.path : `/profile${link.path}`}
|
||||
className={currentPath.includes(link.path) ? "active" : ""}
|
||||
>
|
||||
{link.name}
|
||||
</NavLink>
|
||||
@ -88,8 +104,8 @@ export const Navigation = () => {
|
||||
})}
|
||||
</nav>
|
||||
|
||||
<div className="profile-header__personalInfo">
|
||||
<h3 className="profile-header__personalInfoName">
|
||||
<div className="profileHeader__personalInfo">
|
||||
<h3 className="profileHeader__personalInfoName">
|
||||
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username}
|
||||
</h3>
|
||||
<NavLink end to={"/profile"}>
|
||||
@ -97,7 +113,7 @@ export const Navigation = () => {
|
||||
src={
|
||||
profileInfo?.photo ? urlForLocal(profileInfo.photo) : avatarMok
|
||||
}
|
||||
className="profile-header__personalInfoAvatar"
|
||||
className="profileHeader__personalInfoAvatar"
|
||||
alt="avatar"
|
||||
/>
|
||||
</NavLink>
|
||||
|
@ -98,7 +98,7 @@ export const ProfileCalendar = () => {
|
||||
{profileInfo.specification} разработчик
|
||||
</p>
|
||||
</div>
|
||||
<Link to="/profile/calendar/report">
|
||||
<Link to="/report">
|
||||
<button
|
||||
className="calendar__btn"
|
||||
onClick={() => dispatch(setReportDate(""))}
|
||||
|
@ -96,11 +96,9 @@ export const ProfileCalendarComponent = React.memo(
|
||||
)}-${correctDay(new Date(day).getDate())}` === date.created_at
|
||||
) {
|
||||
if (userId) {
|
||||
return `/profile/calendar/view/${date.created_at}/${userId}`;
|
||||
return `../view/${date.created_at}/${userId}`;
|
||||
}
|
||||
return `/profile/calendar/view/${
|
||||
date.created_at
|
||||
}/${localStorage.getItem("id")}`;
|
||||
return `../view/${date.created_at}/${localStorage.getItem("id")}`;
|
||||
}
|
||||
}
|
||||
|
||||
@ -108,7 +106,7 @@ export const ProfileCalendarComponent = React.memo(
|
||||
return "#";
|
||||
}
|
||||
|
||||
return "/profile/calendar/report";
|
||||
return "../../report";
|
||||
}
|
||||
|
||||
const prevMonth = () => value.clone().subtract(1, "month");
|
||||
|
@ -33,6 +33,7 @@
|
||||
}
|
||||
|
||||
.calendar__wrapper {
|
||||
min-height: 719px;
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
min-height: auto;
|
||||
|
@ -20,6 +20,19 @@ export const ProfileHeader = () => {
|
||||
|
||||
const [isLoggingOut, setIsLoggingOut] = useState(false);
|
||||
|
||||
// useEffect(() => {
|
||||
// if (Object.keys(profileInfo).length) {
|
||||
// return;
|
||||
// }
|
||||
// apiRequest(`/user/me`).then((profileInfo) => {
|
||||
// dispatch(
|
||||
// setProfileInfo(
|
||||
// profileInfo.userCard ? profileInfo.userCard : profileInfo
|
||||
// )
|
||||
// );
|
||||
// });
|
||||
// }, [dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!Object.keys(profileInfo).length)
|
||||
apiRequest(`/user/me`).then((profileInfo) => {
|
||||
@ -41,16 +54,16 @@ export const ProfileHeader = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<header className="profile-header">
|
||||
<div className="profile-header__head">
|
||||
<div className="profile-header__container">
|
||||
<NavLink to={"/profile"} className="profile-header__title">
|
||||
<header className="profileHeader">
|
||||
<div className="profileHeader__head">
|
||||
<div className="profileHeader__container">
|
||||
<NavLink to={"/profile"} className="profileHeader__title">
|
||||
itguild.
|
||||
<span>
|
||||
{user === "developer" ? "для разработчиков" : "для партнеров"}
|
||||
</span>
|
||||
</NavLink>
|
||||
<button onClick={handler} className="profile-header__logout">
|
||||
<button onClick={handler} className="profileHeader__logout">
|
||||
{isLoggingOut ? <Loader /> : "Выйти"}
|
||||
</button>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
.profile-header {
|
||||
.profileHeader {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -53,24 +53,24 @@
|
||||
flex-wrap: wrap;
|
||||
column-gap: 30px;
|
||||
|
||||
.active {
|
||||
color: #000000 !important;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
text-decoration: none !important;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
line-height: 32px;
|
||||
color: #807777;
|
||||
color: #807777 !important;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
color: #261a1a;
|
||||
color: #261a1a !important;
|
||||
}
|
||||
}
|
||||
|
||||
a.active {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
column-gap: 15px;
|
||||
|
||||
|
@ -75,6 +75,8 @@ export const ProjectTicket = ({ project, index }) => {
|
||||
setModalDelete(false);
|
||||
}
|
||||
|
||||
function linkProject() {}
|
||||
|
||||
return (
|
||||
<div className={`project project-${project.id}`} key={index}>
|
||||
<Link
|
||||
|
@ -2,11 +2,13 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
width: 300px;
|
||||
width: 322px;
|
||||
|
||||
background: #f1f1f1;
|
||||
border-radius: 12px;
|
||||
|
||||
cursor: pointer;
|
||||
max-width: 440px;
|
||||
transition: 0.4s;
|
||||
|
||||
&:hover {
|
||||
@ -24,12 +26,15 @@
|
||||
|
||||
&__link {
|
||||
font-weight: 700;
|
||||
width: 194px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 18px;
|
||||
line-height: 32px;
|
||||
color: #111112;
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: 22px;
|
||||
max-width: 380px;
|
||||
|
||||
&:hover {
|
||||
color: black;
|
||||
@ -40,7 +45,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 45px;
|
||||
|
||||
p {
|
||||
color: #6f6f6f;
|
||||
@ -48,6 +53,7 @@
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
line-height: 17px;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.count {
|
||||
@ -91,13 +97,13 @@
|
||||
}
|
||||
|
||||
&__open-tracker {
|
||||
padding: 10px 15px;
|
||||
padding: 17px 26px 16px;
|
||||
}
|
||||
|
||||
&__statistics {
|
||||
position: absolute;
|
||||
bottom: 13px;
|
||||
left: 15px;
|
||||
bottom: 18px;
|
||||
left: 26px;
|
||||
color: #0042b4;
|
||||
text-decoration: underline;
|
||||
font-size: 14px;
|
||||
|
@ -87,12 +87,10 @@ const ReportForm = () => {
|
||||
};
|
||||
|
||||
const handler = () => {
|
||||
setIsFetching(true);
|
||||
for (let input of inputs) {
|
||||
if (!input.task || !input.hours_spent) {
|
||||
setReportSuccess("Заполните задачи");
|
||||
setTimeout(() => setReportSuccess(""), 2000);
|
||||
setIsFetching(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -294,16 +292,12 @@ const ReportForm = () => {
|
||||
<div className="row">
|
||||
<div className="col-12">
|
||||
<div className="report-form__footer">
|
||||
{isFetching ? (
|
||||
<Loader style={"green"} />
|
||||
) : (
|
||||
<button
|
||||
className="report-form__footer-btn"
|
||||
onClick={() => handler()}
|
||||
>
|
||||
Отпаравить
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
className="report-form__footer-btn"
|
||||
onClick={() => handler()}
|
||||
>
|
||||
{isFetching ? <Loader /> : "Отправить"}
|
||||
</button>
|
||||
<p className="report-form__footer-text">
|
||||
Всего за день:{" "}
|
||||
<span>
|
||||
|
@ -80,9 +80,7 @@ export const ShortReport = () => {
|
||||
<h2 className="viewReport__title">
|
||||
Ваши отчеты - <span>просмотр отчета за день</span>
|
||||
</h2>
|
||||
<Link to={`/profile/calendar/view/${dateCreate}`}>
|
||||
Посмотреть подробный отчет
|
||||
</Link>
|
||||
<Link to={`../view/${dateCreate}`}>Посмотреть подробный отчет</Link>
|
||||
</div>
|
||||
|
||||
<div className="viewReport__bar">
|
||||
|
@ -9,11 +9,7 @@ export const CardAvailableTest = ({ title, description, path, status }) => {
|
||||
return (
|
||||
<div className="card-available-test">
|
||||
<Link
|
||||
to={
|
||||
status === 2
|
||||
? `/profile/quiz/report/${path}`
|
||||
: `/profile/quiz/test/${path}`
|
||||
}
|
||||
to={status === 2 ? `/quiz/report/${path}` : `/quiz/test/${path}`}
|
||||
aria-disabled={true}
|
||||
className="card-available-test__container"
|
||||
style={
|
||||
@ -37,7 +33,7 @@ export const CardAvailableTest = ({ title, description, path, status }) => {
|
||||
{status === 2 && (
|
||||
<div className="card-available-test__finished">
|
||||
<p>Получить отчет по тестированию</p>
|
||||
<Link to={`/profile/quiz/report/${path}`}>Отчет по тесту</Link>
|
||||
<Link to={`/quiz/report/${path}`}>Отчет по тесту</Link>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
@ -25,13 +25,13 @@ export const QuizReport = ({ info }) => {
|
||||
<div className="report__value">
|
||||
{Boolean(correctAnswers()) ? correctAnswers() : 0}
|
||||
</div>
|
||||
<div className="report__text">правильных ответов</div>
|
||||
<div className="report__text">Правильных ответов</div>
|
||||
</div>
|
||||
<div className="report__column">
|
||||
<div className="report__value report__value_false">
|
||||
{Boolean(correctWrongAnswers()) ? correctWrongAnswers() : 0}
|
||||
</div>
|
||||
<div className="report__text">неправильных ответов</div>
|
||||
<div className="report__text">Не правильных ответов</div>
|
||||
</div>
|
||||
<div className="report__column">
|
||||
<div className="report__status-text">Статус:</div>
|
||||
|
@ -505,10 +505,12 @@ $maxWidthContainer: 1123;
|
||||
}
|
||||
&__finished {
|
||||
background: white;
|
||||
mix-blend-mode: normal;
|
||||
border: 3px solid #52b709;
|
||||
border-radius: 12px;
|
||||
padding: 13px 16px;
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
bottom: 4px;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
14
src/pages/ActPage/ActPage.jsx
Normal file
14
src/pages/ActPage/ActPage.jsx
Normal file
@ -0,0 +1,14 @@
|
||||
import React from "react";
|
||||
|
||||
import { ActContent } from "@components/features/bookkeeping/ActContent/ActContent";
|
||||
import { BookkeepingTemplete } from "@components/features/bookkeeping/BookkeepingTemplete/BookkeepingTemplete";
|
||||
|
||||
export const ActPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<BookkeepingTemplete showBreadcrumps nameBreeadcrumps="Создание акта">
|
||||
<ActContent></ActContent>
|
||||
</BookkeepingTemplete>
|
||||
</div>
|
||||
);
|
||||
};
|
@ -15,7 +15,7 @@
|
||||
&__about {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 30px 0;
|
||||
margin-bottom: 30px;
|
||||
@media (max-width: 600px) {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 25px;
|
||||
|
@ -92,7 +92,7 @@ export const PartnerSettings = () => {
|
||||
]}
|
||||
/>
|
||||
<div className="partner-settings">
|
||||
<h2 className="info-personal__title">Настройки профиля</h2>
|
||||
<h2 className="infoPersonal__title">Настройки профиля</h2>
|
||||
<div className="partner-settings__body">
|
||||
<div className="partner-settings__login">
|
||||
<h3 className="settings__title">Вход в систему</h3>
|
||||
|
@ -4,7 +4,7 @@
|
||||
min-height: 100vh;
|
||||
font-family: "LabGrotesque", sans-serif;
|
||||
|
||||
.info-personal__title {
|
||||
.infoPersonal__title {
|
||||
color: #000000;
|
||||
font-weight: 700;
|
||||
font-size: 22px;
|
||||
@ -12,7 +12,6 @@
|
||||
}
|
||||
|
||||
&__page {
|
||||
min-height: 750px;
|
||||
max-width: 1160px !important;
|
||||
margin-top: 23px;
|
||||
}
|
||||
@ -135,7 +134,7 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
margin-top: 50px;
|
||||
margin-top: 27px;
|
||||
}
|
||||
|
||||
&__report,
|
||||
|
@ -397,8 +397,15 @@ export const ProjectTracker = () => {
|
||||
div.classList.contains("tags__list"))
|
||||
)
|
||||
) {
|
||||
setTags({ open: false, add: false, edit: false });
|
||||
setTagInfo({ description: "", name: "" });
|
||||
setTags({
|
||||
open: false,
|
||||
add: false,
|
||||
edit: false
|
||||
});
|
||||
setTagInfo({
|
||||
description: "",
|
||||
name: ""
|
||||
});
|
||||
setColor("#aabbcc");
|
||||
}
|
||||
|
||||
@ -444,7 +451,7 @@ export const ProjectTracker = () => {
|
||||
<div className="tracker__tabs__head">
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab active-tab tab"
|
||||
className="tab active-tab tab projectsTab"
|
||||
onClick={() => dispatch(setToggleTab(1))}
|
||||
>
|
||||
<img src={project} alt="img" />
|
||||
@ -452,7 +459,7 @@ export const ProjectTracker = () => {
|
||||
</Link>
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab"
|
||||
className="tab tasksTab"
|
||||
onClick={() => dispatch(setToggleTab(2))}
|
||||
>
|
||||
<img src={tasks} alt="img" />
|
||||
@ -460,7 +467,7 @@ export const ProjectTracker = () => {
|
||||
</Link>
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab"
|
||||
className="tab archiveTab"
|
||||
onClick={() => dispatch(setToggleTab(3))}
|
||||
>
|
||||
<img src={archive} alt="img" />
|
||||
@ -955,11 +962,20 @@ export const ProjectTracker = () => {
|
||||
src={commentsBoard}
|
||||
alt="commentsImg"
|
||||
/>
|
||||
<span>{task.comment_count}</span>
|
||||
<span>
|
||||
{task.comment_count}{" "}
|
||||
{/* {caseOfNum(
|
||||
task.comment_count,
|
||||
"comments"
|
||||
)} */}
|
||||
</span>
|
||||
</div>
|
||||
<div className="tasks__board__item__info__more">
|
||||
<img src={filesBoard} alt="filesImg" />
|
||||
<span>{task.file_count}</span>
|
||||
<span>
|
||||
{task.file_count ? task.file_count : 0}{" "}
|
||||
{/* {caseOfNum(0, "files")} */}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<TrackerSelectColumn
|
||||
|
@ -120,12 +120,12 @@ export const PassingTests = () => {
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{/*{!startTest && (*/}
|
||||
{/* <div className="passing-tests-page__block-text block-text">*/}
|
||||
{/* ИЛИ <Link to={""}>выполните тестовое задание</Link>, без*/}
|
||||
{/* прохождения тестов*/}
|
||||
{/* </div>*/}
|
||||
{/*)}*/}
|
||||
{!startTest && (
|
||||
<div className="passing-tests-page__block-text block-text">
|
||||
ИЛИ <Link to={""}>выполните тестовое задание</Link>, без
|
||||
прохождения тестов
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{completedTest && (
|
||||
|
@ -144,10 +144,10 @@ export const QuizPage = () => {
|
||||
<h1>Анкет нет</h1>
|
||||
)}
|
||||
</div>
|
||||
{/*<div className="block-text">*/}
|
||||
{/* ИЛИ <Link to={""}>выполните тестовое задание</Link>, без*/}
|
||||
{/* прохождения тестов*/}
|
||||
{/*</div>*/}
|
||||
<div className="block-text">
|
||||
ИЛИ <Link to={""}>выполните тестовое задание</Link>, без
|
||||
прохождения тестов
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{selectedCategory && (
|
||||
|
@ -42,8 +42,8 @@ export const QuizReportPage = () => {
|
||||
<ProfileBreadcrumbs
|
||||
links={[
|
||||
{ name: "Главная", link: "/profile-candidate" },
|
||||
{ name: "Тестирование", link: "/profile/quiz" },
|
||||
{ name: "Отчет по тестированию", link: "/profile/quiz" }
|
||||
{ name: "Тестирование", link: "/Quiz" },
|
||||
{ name: "Отчет по тестированию", link: "/Quiz/report" }
|
||||
]}
|
||||
/>
|
||||
<div className="quiz-report-page__title main-title">
|
||||
|
@ -76,7 +76,7 @@ const Statistics = () => {
|
||||
<div className="tracker__tabs__head">
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab active-tab"
|
||||
className="tab active-tab projectsTab"
|
||||
onClick={() => toggleTabs(1)}
|
||||
>
|
||||
<img src={project} alt="img" />
|
||||
@ -84,7 +84,7 @@ const Statistics = () => {
|
||||
</Link>
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab"
|
||||
className="tab tasksTab"
|
||||
onClick={() => toggleTabs(2)}
|
||||
>
|
||||
<img src={tasks} alt="img" />
|
||||
@ -92,7 +92,7 @@ const Statistics = () => {
|
||||
</Link>
|
||||
<Link
|
||||
to="/profile/tracker"
|
||||
className="tab"
|
||||
className="tab archiveTab"
|
||||
onClick={() => toggleTabs(3)}
|
||||
>
|
||||
<img src={archive} alt="img" />
|
||||
|
@ -51,6 +51,7 @@ export const Tracker = () => {
|
||||
const [allCompletedTasks, setAllCompletedTasks] = useState([]);
|
||||
|
||||
const [modalCreateProject, setModalCreateProject] = useState(false);
|
||||
const tabs = ["projectsTab", "tasksTab", "archiveTab"];
|
||||
|
||||
useEffect(() => {
|
||||
setLoader(true);
|
||||
@ -142,28 +143,32 @@ export const Tracker = () => {
|
||||
<div className="tracker__tabs">
|
||||
<div className="tracker__tabs__head">
|
||||
<div
|
||||
className={tab === 1 ? "tab active-tab" : "tab"}
|
||||
className={
|
||||
tab === 1 ? "tab active-tab projectsTab" : "tab projectsTab"
|
||||
}
|
||||
onClick={() => toggleTabs(1)}
|
||||
>
|
||||
<img src={project} alt="img" />
|
||||
<p>Проекты </p>
|
||||
</div>
|
||||
<div
|
||||
className={tab === 2 ? "tab active-tab" : "tab"}
|
||||
className={tab === 2 ? "tab active-tab tasksTab" : "tab tasksTab"}
|
||||
onClick={() => toggleTabs(2)}
|
||||
>
|
||||
<img src={tasks} alt="img" />
|
||||
<p>Все мои задачи</p>
|
||||
</div>
|
||||
<div
|
||||
className={tab === 3 ? "tab active-tab" : "tab"}
|
||||
className={
|
||||
tab === 3 ? "tab active-tab archiveTab" : "tab archiveTab"
|
||||
}
|
||||
onClick={() => toggleTabs(3)}
|
||||
>
|
||||
<img src={archive} alt="img" />
|
||||
<p>Архив</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className={`tracker__tabs__content`}>
|
||||
<div className={`tracker__tabs__content ${tabs[tab - 1]}`}>
|
||||
<div
|
||||
className={
|
||||
tab === 1
|
||||
@ -196,7 +201,7 @@ export const Tracker = () => {
|
||||
)) &&
|
||||
!loader && (
|
||||
<div className="no-projects">
|
||||
<div className="no-projects__create-new">
|
||||
<div className="no-projects__createNew">
|
||||
<div>
|
||||
<img src={noProjects} alt="noProjectImg" />
|
||||
<p>Создайте свой первый проект</p>
|
||||
@ -246,7 +251,7 @@ export const Tracker = () => {
|
||||
<p>
|
||||
{25} - {35}
|
||||
</p>
|
||||
<h3>Сентября,</h3>
|
||||
<h2>Сентября,</h2>
|
||||
<h3>2023</h3>
|
||||
</div>
|
||||
|
||||
|
@ -34,7 +34,6 @@
|
||||
}
|
||||
|
||||
&__tabs {
|
||||
min-height: 600px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@ -49,9 +48,11 @@
|
||||
height: 60px;
|
||||
|
||||
@media (max-width: 650px) {
|
||||
background: none;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
top: 15px;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,19 +89,22 @@
|
||||
}
|
||||
|
||||
@media (max-width: 650px) {
|
||||
border-radius: 10px 10px 0 0;
|
||||
padding: 10px;
|
||||
align-items: center;
|
||||
border-radius: 10px;
|
||||
flex-direction: column;
|
||||
padding: 20px;
|
||||
align-items: start;
|
||||
row-gap: 20px;
|
||||
height: auto !important;
|
||||
|
||||
p {
|
||||
margin-left: 5px;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.active-tab {
|
||||
background: white;
|
||||
border-radius: 12px 12px 0px 0px;
|
||||
border-radius: 12px 12px 5px 5px;
|
||||
position: relative;
|
||||
height: 73px;
|
||||
display: flex;
|
||||
@ -117,15 +121,17 @@
|
||||
}
|
||||
|
||||
@media (max-width: 650px) {
|
||||
padding: 10px 20px;
|
||||
border-radius: 10px;
|
||||
align-items: start;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__content {
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
padding: 30px 0;
|
||||
margin-bottom: 10px;
|
||||
padding: 15px 0;
|
||||
margin-bottom: 50px;
|
||||
|
||||
&__wrapper {
|
||||
max-width: 1160px;
|
||||
@ -139,10 +145,10 @@
|
||||
row-gap: 30px;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@media (max-width: 785px) {
|
||||
row-gap: 25px;
|
||||
justify-content: center;
|
||||
padding: 0 15px 20px;
|
||||
}
|
||||
|
||||
@ -152,7 +158,7 @@
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
|
||||
&__create-new {
|
||||
&__createNew {
|
||||
display: flex;
|
||||
div {
|
||||
display: flex;
|
||||
@ -171,11 +177,14 @@
|
||||
}
|
||||
|
||||
.create-project-btn {
|
||||
width: 300px;
|
||||
height: 113px;
|
||||
max-width: 322px;
|
||||
width: 322px;
|
||||
height: 166px;
|
||||
border-radius: 12px;
|
||||
background: #ecf8e5;
|
||||
color: #000000;
|
||||
font-weight: 400;
|
||||
font-size: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@ -183,9 +192,10 @@
|
||||
|
||||
&__text {
|
||||
text-align: left;
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
margin-left: 15px;
|
||||
font-size: 14px;
|
||||
font-weight: 250;
|
||||
width: 190px;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@ -193,13 +203,10 @@
|
||||
box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.11);
|
||||
}
|
||||
|
||||
@media (max-width: 1068px) {
|
||||
width: 47%;
|
||||
}
|
||||
|
||||
@media (max-width: 785px) {
|
||||
max-width: 394px;
|
||||
width: 100%;
|
||||
@media (max-width: 650px) {
|
||||
height: 40px;
|
||||
font-size: 12px;
|
||||
height: 166px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -224,6 +231,10 @@
|
||||
padding: 0 15px 15px;
|
||||
}
|
||||
|
||||
@media (max-width: 650px) {
|
||||
background-color: #dff1ff;
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
display: flex;
|
||||
max-width: 1400px;
|
||||
@ -1902,12 +1913,25 @@
|
||||
@media (max-width: 650px) {
|
||||
&__content {
|
||||
padding: 28px 0 0;
|
||||
background-color: #dff1ff;
|
||||
|
||||
.project {
|
||||
background-color: #eeeeee;
|
||||
background-color: white;
|
||||
max-width: 394px;
|
||||
}
|
||||
}
|
||||
|
||||
.projectsTab {
|
||||
background-color: #dff1ff;
|
||||
}
|
||||
|
||||
.tasksTab {
|
||||
background-color: #e8ffeb;
|
||||
}
|
||||
|
||||
.archiveTab {
|
||||
background-color: #ffecef;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -94,8 +94,13 @@
|
||||
top: -100px;
|
||||
right: 58px;
|
||||
|
||||
@media (max-width: 900px) {
|
||||
display: none;
|
||||
@media (max-width: 1000px) {
|
||||
position: inherit;
|
||||
order: 1;
|
||||
top: inherit;
|
||||
right: inherit;
|
||||
max-width: 115px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { Link, useParams } from "react-router-dom";
|
||||
import { Link, Navigate, useParams } from "react-router-dom";
|
||||
|
||||
import { apiRequest } from "@api/request";
|
||||
|
||||
@ -27,11 +27,9 @@ export const ViewReport = () => {
|
||||
const [taskText, setTaskText] = useState([]);
|
||||
const [difficulties, setDifficulties] = useState([]);
|
||||
const [tomorrowTask, setTomorrowTask] = useState([]);
|
||||
const [taskId, setTaskId] = useState("");
|
||||
const [totalHours, setTotalHours] = useState(0);
|
||||
const [currentDay] = useState(new Date());
|
||||
const [loader, setLoader] = useState(false);
|
||||
const [deleteLoader, setDeleteLoader] = useState(false);
|
||||
|
||||
function getReportFromDate(day) {
|
||||
setLoader(true);
|
||||
@ -41,7 +39,6 @@ export const ViewReport = () => {
|
||||
apiRequest(`reports/find-by-date?user_id=${params.id}&date=${day}`).then(
|
||||
(res) => {
|
||||
let spendTime = 0;
|
||||
setTaskId(res[0]?.id);
|
||||
for (const item of res) {
|
||||
if (item.difficulties) {
|
||||
setDifficulties((prevArray) => [...prevArray, item.difficulties]);
|
||||
@ -68,18 +65,6 @@ export const ViewReport = () => {
|
||||
nextReportDay.setDate(nextReportDay.getDate() + 1);
|
||||
}
|
||||
|
||||
function deleteReport() {
|
||||
setDeleteLoader(true);
|
||||
apiRequest(`reports/delete?id=${taskId}`, {
|
||||
method: "DELETE"
|
||||
}).then((res) => {
|
||||
setDeleteLoader(false);
|
||||
if (res) {
|
||||
window.location.replace("/profile/calendar");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function nextDay() {
|
||||
getReportFromDate(getCreatedDate(nextReportDay));
|
||||
previousReportDay.setDate(previousReportDay.getDate() + 2);
|
||||
@ -125,32 +110,22 @@ export const ViewReport = () => {
|
||||
<img src={arrow} alt="#" />
|
||||
<p>Вернуться</p>
|
||||
</Link>
|
||||
{localStorage.getItem("role_status") !== "18" && (
|
||||
<div className="viewReport__bar">
|
||||
<button className="viewReport__bar__edit">Редактировать</button>
|
||||
{deleteLoader ? (
|
||||
<Loader style={"green"} />
|
||||
) : (
|
||||
<button
|
||||
onClick={deleteReport}
|
||||
className={
|
||||
taskText.length
|
||||
? "viewReport__bar__delete"
|
||||
: "viewReport__bar__delete disable"
|
||||
}
|
||||
>
|
||||
Удалить отчет
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{/* <div className="viewReport__bar">
|
||||
<h3 className="viewReport__bar__date">
|
||||
{getCorrectDate(dateReport.id)}
|
||||
</h3>
|
||||
<p className="viewReport__bar__hours">
|
||||
Вами потрачено на работу:{" "}
|
||||
<span>
|
||||
{totalHours} {hourOfNum(totalHours)}
|
||||
</span>
|
||||
</p>
|
||||
</div> */}
|
||||
</div>
|
||||
<div className="viewReport__switch-date">
|
||||
<div onClick={() => previousDay()}>
|
||||
<Link
|
||||
to={`/profile/calendar/view/${getCreatedDate(
|
||||
previousReportDay
|
||||
)}/${params.id}`}
|
||||
to={`../view/${getCreatedDate(previousReportDay)}/${params.id}`}
|
||||
>
|
||||
<div className="viewReport__switch-date__prev switch-date">
|
||||
<img src={arrowSwitchDate} alt="arrow" />
|
||||
@ -166,11 +141,7 @@ export const ViewReport = () => {
|
||||
getCreatedDate(currentDay) === params.date ? "disable" : ""
|
||||
}`}
|
||||
>
|
||||
<Link
|
||||
to={`/profile/calendar/view/${getCreatedDate(nextReportDay)}/${
|
||||
params.id
|
||||
}`}
|
||||
>
|
||||
<Link to={`../view/${getCreatedDate(nextReportDay)}/${params.id}`}>
|
||||
<div className={`viewReport__switch-date__next switch-date`}>
|
||||
<img src={arrowSwitchDate} alt="arrow" />
|
||||
</div>
|
||||
|
@ -64,34 +64,71 @@
|
||||
height: 72px;
|
||||
justify-content: space-between;
|
||||
|
||||
button {
|
||||
color: #000000;
|
||||
font-size: 15px;
|
||||
@media (max-width: 540px) {
|
||||
padding: 10px 15px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
column-gap: 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&__date {
|
||||
font-weight: 500;
|
||||
font-size: 22px;
|
||||
line-height: 32px;
|
||||
padding: 8px 24px;
|
||||
color: #000000;
|
||||
|
||||
@media (max-width: 660px) {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 490px) {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
&__edit {
|
||||
background: #E1FCCF;
|
||||
border-radius: 44px;
|
||||
border: none;
|
||||
&__hours {
|
||||
font-weight: 400;
|
||||
font-size: 15px;
|
||||
line-height: 32px;
|
||||
color: #000000;
|
||||
|
||||
@media (max-width: 660px) {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: #52B709;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
&__delete {
|
||||
background: white;
|
||||
&__progressBar {
|
||||
max-width: 390px;
|
||||
width: 100%;
|
||||
background: #F1F1F1;
|
||||
border-radius: 12px;
|
||||
border: 1px dashed #8BCC60;
|
||||
height: 8px;
|
||||
position: relative;
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
width: 60%;
|
||||
background: #52B709;
|
||||
border-radius: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.disable {
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
&__total {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.loader {
|
||||
max-width: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
Loading…
Reference in New Issue
Block a user