From 405986d5d5b208c40bd0d947d92c05366da8d5ba Mon Sep 17 00:00:00 2001 From: M1kola Date: Tue, 3 Jan 2023 00:30:21 +0300 Subject: [PATCH] git fetch --- src/components/Profile/ProfileHeader.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Profile/ProfileHeader.js b/src/components/Profile/ProfileHeader.js index 95d8ca0d..f9374d34 100644 --- a/src/components/Profile/ProfileHeader.js +++ b/src/components/Profile/ProfileHeader.js @@ -10,6 +10,7 @@ import './profileHeader.scss' export const ProfileHeader = () => { const [isLoggingOut, setIsLoggingOut] = useState(false); + const [gitInfo, setGitInfo] = useState([]) const dispatch = useDispatch(); const userRole = useSelector(getRole); const profileInfo = useSelector(getProfileInfo) @@ -21,6 +22,11 @@ export const ProfileHeader = () => { }).then((profileInfo) => { dispatch(setProfileInfo(profileInfo)) }) + fetchGet({ + link: `${process.env.REACT_APP_API_URL}/api/profile/portfolio-projects?card_id=${localStorage.getItem('cardId')}`, + }).then((responseGit) => { + setGitInfo(responseGit) + }) }, []) return(