Skip to content

Commit

Permalink
💄 Add apply page link
Browse files Browse the repository at this point in the history
#264 지원한 공고 상세페이지 이동 추가
  • Loading branch information
sxxcxng committed Sep 28, 2024
1 parent 2c780f7 commit c5f63c3
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions gongjakso/src/pages/ProfileApplied/AppliedTeam.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import TeamBox from '../TeamBox/TeamBox';
import TopButton from '../../pages/HomePage/TopButton';
import Pagination from '../../components/Pagination/Pagination';
import { getMyInfo, getMyApplied } from '../../service/profile_service';
import { Link } from 'react-router-dom';

const TeamSupport = () => {
const [data, setProfileData] = useState();
Expand All @@ -24,7 +25,7 @@ const TeamSupport = () => {

useEffect(() => {
getMyInfo().then(response => {
setProfileData(response?.data); // 'response'를 바로 전달
setProfileData(response?.data);
});
}, []);

Expand All @@ -43,15 +44,20 @@ const TeamSupport = () => {
<S.Title>{data?.name}님의 지원 기록</S.Title>
</S.TopBox>
<S.BoxDetail>
{postContent2?.map((postContent2, index) => (
<TeamBox
key={index}
showMoreDetail={false}
showWaitingJoin={true}
showSubBox={true}
postContent={postContent2}
isMyParticipation={false}
/>
{postContent2?.map((postContent, index) => (
<React.Fragment key={postContent.id}>
<Link
to={`/contest/${postContent.contest_id}/team/${postContent.team_id}`}
>
<TeamBox
showMoreDetail={false}
showWaitingJoin={true}
showSubBox={true}
postContent={postContent}
isMyParticipation={false}
/>
</Link>
</React.Fragment>
))}
<Pagination
total={totalPage}
Expand Down

0 comments on commit c5f63c3

Please sign in to comment.