Skip to content

Commit

Permalink
Merge pull request #89 from karrotmvp/feature/detail
Browse files Browse the repository at this point in the history
feat: 상세페이지에 작성자 정보 추가
  • Loading branch information
jjunyjjuny authored Dec 3, 2021
2 parents 9d0b8da + 682222b commit c363429
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions src/pages/ErrandDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ export default function ErrandDetail({ errandId }: WithParamsProps) {
const countOfVisitToDetail = Number(
localStorage.getItem("countOfVisitToDetail")
);
console.log("countOfVisitToDetail", countOfVisitToDetail);
if (countOfVisitToDetail === 1) {
checkSubScribe();
}
Expand Down Expand Up @@ -326,6 +325,15 @@ export default function ErrandDetail({ errandId }: WithParamsProps) {
</Slider>
</div>
<div className="errand-detail__contents">
<div className="errand-detail__contents__profile">
<div>
<img
src={data?.errand.customer.profileImageUrl}
alt="profile"
/>
</div>
<span>{data?.errand.customer.nickname}</span>
</div>
<div className="errand-detail__contents__title">
<div>
<span>{data?.errand.category.name}</span>
Expand Down Expand Up @@ -480,11 +488,27 @@ const ErrandDetailWrapper = styled.div`
h2 {
${({ theme }) => theme.font("large", "bold")}
}
&__profile {
display: flex;
align-items: center;
${({ theme }) => theme.font("large", "regular")}
margin: 2rem 0;
& > div {
width: 3rem;
height: 3rem;
border-radius: 3rem;
overflow: hidden;
margin-right: 0.8rem;
& > img {
width: 100%;
}
}
}
&__title {
${({ theme }) => theme.font("xsmall", "regular")}
color: ${({ theme }) => theme.color.grey4};
margin-top: 0.7rem;
margin-top: 0.5rem;
display: flex;
justify-content: space-between;
Expand All @@ -497,7 +521,7 @@ const ErrandDetailWrapper = styled.div`
&__info {
${({ theme }) => theme.font("large", "regular")}
margin-top: 3rem;
margin-top: 1rem;
& > div {
display: flex;
Expand All @@ -514,7 +538,7 @@ const ErrandDetailWrapper = styled.div`
}
& > div + div {
margin-top: 2.4rem;
margin-top: 1rem;
}
}
Expand Down

0 comments on commit c363429

Please sign in to comment.