Closed LimEunSang closed 2 years ago
'대학원생, 학부 연구원생, 연구원' 페이지에서 수정된 API의 형식으로 UI를 수정하고 mockAPI를 적용했습니다.
멤버마다 가지고 있는 정보가 다릅니다. 예를 들어 대학원생에게는 연구원에게 없는 입학년도인 'admission' 속성을 가지고 있습니다. 이 다른 속성들을 동일한 컴포넌트로 출력하기 위해 정보를 가지고 있을 때만 출력하도록 코드를 작성했습니다.
{/* 입학 년도 */} {post.admission && ( <Typography variant="body1" sx={{ p: 1, }} > {post.admission} </Typography> )}
스크린샷입니다.
수고하셨습니다 LGTM!
'대학원생, 학부 연구원생, 연구원' 페이지에서 수정된 API의 형식으로 UI를 수정하고 mockAPI를 적용했습니다.
멤버마다 가지고 있는 정보가 다릅니다. 예를 들어 대학원생에게는 연구원에게 없는 입학년도인 'admission' 속성을 가지고 있습니다. 이 다른 속성들을 동일한 컴포넌트로 출력하기 위해 정보를 가지고 있을 때만 출력하도록 코드를 작성했습니다.
스크린샷입니다.