Skip to content

Commit

Permalink
[ISSUE-257] 리뷰 사진 네모로 (#258)
Browse files Browse the repository at this point in the history
* [FEAT] 상품 소개글 조회

* [BUGFIX] undefined 오류 수정

* [UI] 리뷰 사진 square shape
  • Loading branch information
2hanbyeol1 authored Oct 30, 2023
1 parent 61c63da commit db09112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/component/common/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import photo from '../../image/icon/photo.png';

export default function Image(props) {
return (
<div className='image-crop' style={{ borderRadius: '50%' }}>
<div
className='image-crop'
style={{ borderRadius: !props.square && '50%' }}
>
<img
style={{
width: '100%',
Expand Down
3 changes: 2 additions & 1 deletion src/component/order/review/Review.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default function Review() {
img.style.width = '300px';
}
}}
/>,
square
/>
);
});

Expand Down

0 comments on commit db09112

Please sign in to comment.