Skip to content

Commit

Permalink
fix recruit-page team-name to nickname
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeon81 committed Mar 6, 2024
1 parent e8787e4 commit f75d626
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/app/recruit/[id]/panel/RecruitDetailContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ const RecruitDetailContent = ({
return (
<Stack gap={'1.5rem'}>
<RecruitContentText
label="작성자"
content={
data?.leader_nickname ? data.leader_nickname : '존재하지 않는 유저'
}
label="팀명"
content={data?.teamName}
icon={<PersonOutlineOutlinedIcon />}
/>
<RecruitContentText
Expand Down
12 changes: 10 additions & 2 deletions src/app/recruit/[id]/panel/RecruitInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ const RecruitInfo = ({ data, type, children, pc }: RecruitInfoProps) => {
>
<Avatar alt="avatar" src={data?.leader_image} sizes={'small'} />
</OthersProfile>
<Typography variant={'Body2'}>{data?.teamName}</Typography>
<Typography variant={'Body2'}>
{data?.leader_nickname
? data.leader_nickname
: '존재하지 않는 유저'}
</Typography>
<LinkButton href={data?.link} variant={'contained'} />
</Stack>
{/*지원 버튼*/}
Expand Down Expand Up @@ -73,7 +77,11 @@ const RecruitInfo = ({ data, type, children, pc }: RecruitInfoProps) => {
>
<Avatar alt="avatar" src={data?.leader_image} sizes={'small'} />
</OthersProfile>
<Typography variant={'Body2'}>{data?.teamName}</Typography>
<Typography variant={'Body2'}>
{data?.leader_nickname
? data.leader_nickname
: '존재하지 않는 유저'}
</Typography>
</Stack>
<LinkButton href={data?.link} variant={'contained'} />
</Stack>
Expand Down

0 comments on commit f75d626

Please sign in to comment.