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(
Вернуться
{profileInfo.fio} {profileInfo.specification}