Skip to content

Commit

Permalink
feat: 프로필 render함수 제작 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavegaa committed Dec 6, 2020
1 parent 7af817b commit 3092d2e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/pages/StudyMainPage/StudyMainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ export default function StudyMainPage() {
'자유_기타',
];

const MockProfile = (val) => {
let item = [];
for(let i = 0; i<val; i+=1) {
item.push(<ProfileInfoContainer />);
}
return item;
}

return (
<S.Wrapper>
<Modal modalName={MODALS.STUDY_MAKE_MODAL} func={handleReload} />
Expand Down Expand Up @@ -112,13 +120,7 @@ export default function StudyMainPage() {
<S.PartiText>
참여도 높은 유저
</S.PartiText>
<ProfileInfoContainer />
<ProfileInfoContainer />
<ProfileInfoContainer />
<ProfileInfoContainer />
<ProfileInfoContainer />
<ProfileInfoContainer />
<ProfileInfoContainer />
{MockProfile(10)}
</S.PartiWrapper>
</S.BoxWrapper>
</S.ContentWrapper>
Expand Down

0 comments on commit 3092d2e

Please sign in to comment.