import React, {useEffect, useState} from 'react'; import { ProfileHeader } from "../components/Profile/ProfileHeader"; import {getProfileInfo} from "../redux/outstaffingSlice"; import { useSelector } from "react-redux"; import {transformHtml} from "../helper"; import { Footer } from '../components/Footer/Footer' import arrow from "../images/right-arrow.png"; import rightArrow from "../images/arrowRight.png" import gitImgItem from "../images/gitItemImg.png" import './../components/Profile/profile.scss' import {fetchGet} from "../server/server"; export const Profile = () => { const profileInfo = useSelector(getProfileInfo) const [openGit, setOpenGit] = useState(false); const [gitInfo, setGitInfo] = useState([]) useEffect(() => { fetchGet({ link: `${process.env.REACT_APP_API_URL}/api/profile/portfolio-projects?card_id=${localStorage.getItem('cardId')}`, }).then((responseGit) => { setGitInfo(responseGit) }) }, []) return(

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

{openGit &&
setOpenGit(false)}> arrow

Вернуться

}

{profileInfo.fio} {profileInfo.specification}

{!openGit && }
{!openGit &&

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

{profileInfo.skillValues && profileInfo.skillValues.map((skill) => { return {skill.skill.name} })}
} {profileInfo.vc_text && !openGit &&
} {openGit &&

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

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

{itemGit.title}

{itemGit.description}

{itemGit.main_stack}

arrowRight
}) }
}
) }