small edits

This commit is contained in:
Никита Губарь 2024-07-29 16:12:38 +03:00
parent 4084c52a9b
commit 0a8ed604a0
8 changed files with 69 additions and 47 deletions

View File

@ -4,6 +4,7 @@ import { Link, NavLink } from "react-router-dom";
import { BurgerButton } from "@components/BurgerMenu/burgerButton";
import { BurgerMenu } from "@components/BurgerMenu/burgerMenu";
import ModalRegistration from "@components/Modal/ModalRegistration/ModalRegistration";
import authIcon from "assets/icons/authIcon.svg";
@ -11,9 +12,12 @@ import "./authHeader.scss";
export const AuthHeader = () => {
const [actionMenu, setActionMenu] = useState(false);
const [modalReg, setModalReg] = useState(false);
return (
<div className="auth-header">
<BurgerMenu active={actionMenu} />
<ModalRegistration active={modalReg} setActive={setModalReg} />
<div className="auth-header__navigation">
<div className="auth__logo">
<div>
@ -29,19 +33,16 @@ export const AuthHeader = () => {
<div className="auth-nav">
<ul>
<li>
<NavLink to={"/auth"}>кейсы</NavLink>
<NavLink to={"/"}>кейсы</NavLink>
</li>
<li>
<NavLink to={"/stack"}>стек</NavLink>
<NavLink to={"/stack"}>аутстафинг</NavLink>
</li>
<li>
<NavLink to={"/tracker-intro"}>как это работает</NavLink>
<NavLink to={"/tracker-intro"}>трекер</NavLink>
</li>
<li>
<NavLink to={"/auth-candidate"}>отзывы</NavLink>
</li>
<li>
<NavLink to={"/profile"}>наши продукты</NavLink>
<NavLink to={"/auth-candidate"}>работа в IT</NavLink>
</li>
</ul>
</div>
@ -49,8 +50,14 @@ export const AuthHeader = () => {
<button className="signIn">
<Link to="/auth">войти</Link>
</button>
<button className="signUp">
<Link to="/auth">регистрация</Link>
<button
className="signUp"
onClick={(e) => {
e.preventDefault();
setModalReg(true);
}}
>
регистрация
</button>
</div>
</div>

View File

@ -130,9 +130,7 @@
}
.signUp {
a {
color: #a7ca60;
}
color: #a7ca60;
border: 1px solid #a7ca60;
background: none;

View File

@ -7,6 +7,7 @@
border: 1px solid #dde2e4;
border-radius: 8px;
width: 60%;
font-family: "LabGrotesque", sans-serif;
@media (max-width: 1375px) {
width: 80%;
@ -110,7 +111,14 @@
border-radius: 8px;
border: none;
margin-bottom: 5px;
padding-left: 20px;
font-size: 15px;
font-weight: 400;
line-height: 18px;
font-style: normal;
letter-spacing: normal;
text-align: left;
padding: 16px 15px 16px 22px;
outline: none;
}
.input-container {

View File

@ -331,6 +331,7 @@ export const TrackerModal = ({
status: 19
}
}).then((res) => {
console.log(res);
if (!Array.isArray(res.name)) {
const result = { ...res, columns: [] };
dispatch(setProject(result));

View File

@ -63,8 +63,8 @@ export const ProjectTicket = ({ project, index }) => {
dispatch(deleteProject(project));
showNotification({
show: true,
text: "Проект успешно был перемещен в архив",
type: "archive"
text: "Проект успешно удален",
type: "success"
});
});
}

View File

@ -43,6 +43,8 @@ const Statistics = () => {
});
}, []);
useEffect(() => {}, [projectInfo]);
const teams = [
{
avatar: mockAvatar,
@ -121,7 +123,7 @@ const Statistics = () => {
<img src={link} alt="#" />
<span
className="return-text"
onClick={() => copyProjectLink("62")}
onClick={() => copyProjectLink(projectInfo.id)}
>
ссылка на проект
</span>
@ -190,38 +192,36 @@ const Statistics = () => {
<div className="list-team__body">
{projectStatistic?.participants.map((person, index) => {
return (
<>
<div className="list-team__item" key={index}>
<div className="person-name">
<img
src={
person.avatar
? urlForLocal(person.avatar)
: mockAvatar
}
alt="avatar"
/>
<p>{person.username}</p>
</div>
<div className="person-email">
<img src={emailImg} alt="#" />
<p>{person.email}</p>
</div>
<p className="person-type">
{person.role ? person.role : "-"}
</p>
<span
className={
person.status
? "status status-active"
: "status status-none"
<div className="list-team__item" key={index}>
<div className="person-name">
<img
src={
person.avatar
? urlForLocal(person.avatar)
: mockAvatar
}
>
{person.status ? "Активно" : "Не активно"}
</span>
alt="avatar"
/>
<p>{person.username}</p>
</div>
</>
<div className="person-email">
<img src={emailImg} alt="#" />
<p>{person.email}</p>
</div>
<p className="person-type">
{person.role ? person.role : "-"}
</p>
<span
className={
person.status
? "status status-active"
: "status status-none"
}
>
{person.status ? "Активно" : "Не активно"}
</span>
</div>
);
})}
</div>

View File

@ -15,6 +15,7 @@
display: flex;
justify-content: space-between;
margin: 15px 0 0 0;
padding: 0 20px;
&__return {
img {
@ -106,6 +107,7 @@
border-radius: 12px;
background: #f1f1f1;
padding-left: 31px;
margin: 0 10px;
p {
color: #5b6871;

View File

@ -85,7 +85,13 @@ export const Summary = () => {
skill: selectedSkills.map((item) => item.skill_id)
}
}
}).then(() => {});
}).then(() => {
showNotification({
show: true,
text: "Изменения успешно сохранены",
type: "success"
});
});
}
function editSummary() {