Skip to content

Commit

Permalink
feat: bodyBudy#65 Get image from trainer data
Browse files Browse the repository at this point in the history
- TrainerHeader.tsx
  • Loading branch information
ktmihs committed Jul 5, 2022
1 parent 548990c commit 68ab8dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/layout/trainer/TrainerHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const TrainerHeader = ({ state, liked, onClickSetLiked }: HeaderProps) =>
unLikedAlt: '관심 트레이너 해제하기',
};

const trainerImg = ''; // 트레이너로부터 이미지 받아오기

const handleClick = () => {
onClickSetLiked((state: boolean) => !state);
};
Expand Down Expand Up @@ -166,7 +168,7 @@ export const TrainerHeader = ({ state, liked, onClickSetLiked }: HeaderProps) =>
</TrainerIntro>
<TrainerProfile>
<ImageWrapper>
<Image src={profile} alt="강사" width={150} height={150} />
<Image src={trainerImg ? trainerImg : profile} alt="강사" width={150} height={150} />
</ImageWrapper>
<TrainerInfo>
<TrainerName>최세민 트레이너</TrainerName>
Expand Down

0 comments on commit 68ab8dc

Please sign in to comment.