Skip to content

Commit

Permalink
[FEAT] 주문 조회 사진 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
2hanbyeol1 committed Nov 30, 2023
1 parent f303262 commit e10b8f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/screen/inquiry/Detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

.section2 img {
width: 100%;
height: 200px;
max-height: 200px;
}

.DetailProductOptions {
Expand Down
12 changes: 9 additions & 3 deletions src/screen/inquiry/Detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function InquiryDetails() {
},
});
setOrderDetails(response.data);
console.log(response.data);
setLoading(false);
} catch (error) {
console.error('Error fetching order details:', error);
Expand Down Expand Up @@ -103,19 +104,24 @@ function InquiryDetails() {
</li>
</ul>
</div>
<ImgDetailsSection productUrl={product.productUrl} />
<ImgDetailsSection product={product} />
</>
))}
</>
);
}

function ImgDetailsSection({ productUrl }) {
function ImgDetailsSection({ product }) {
console.log(product);
return (
<div className='section2'>
<p className='DetailCName'>배경이미지 시안</p>
<div className='content'>
<img src={productUrl} alt='배경이미지 시안' className='Detail-Img' />
<img
src={product.custom ? product.productUrl : product.licenseArtUrl}
alt='배경이미지 시안'
className='Detail-Img'
/>
</div>
</div>
);
Expand Down

0 comments on commit e10b8f5

Please sign in to comment.