import React, { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { Navigate } from "react-router-dom"; import { getProfileInfo } from "@redux/outstaffingSlice"; import { urlForLocal } from "@utils/helper"; import { apiRequest } from "@api/request"; import { Footer } from "@components/Common/Footer/Footer"; import { Navigation } from "@components/Navigation/Navigation"; import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs"; import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader"; import rightArrow from "assets/icons/arrows/arrowRight.svg"; import arrow from "assets/icons/arrows/left-arrow.png"; import gitImgItem from "assets/icons/gitItemImg.svg"; import "./summary.scss"; export const Summary = () => { if (localStorage.getItem("role_status") === "18") { return ; } const profileInfo = useSelector(getProfileInfo); const [openGit, setOpenGit] = useState(false); const [gitInfo, setGitInfo] = useState([]); useEffect(() => { apiRequest( `/profile/portfolio-projects?card_id=${localStorage.getItem("cardId")}` ).then((responseGit) => setGitInfo(responseGit)); }, []); return (

Ваше резюме {openGit && - Git}

{openGit && (
setOpenGit(false)}> arrow

Вернуться

)}
avatar

{profileInfo.fio}, {profileInfo.specification} разработчик

{!openGit && ( )}
{!openGit && (

Основной стек

{profileInfo.skillValues && profileInfo.skillValues.map((skill, index) => ( {skill.skill.name} {profileInfo.skillValues.length > index + 1 && ","} ))}
)} {profileInfo.vc_text && !openGit && (

Описание опыта работы

)} {openGit && (

Страница портфолио кода разработчика

{Boolean(gitInfo.length) && gitInfo.map((itemGit) => { return (
gitImg

{itemGit.title}

{itemGit.description}

{itemGit.main_stack}

arrowRight ); })}
)}
); };