Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/#114 오류해결 #115

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions FITple-Frontend/src/components/UserItem/UserItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,19 @@ const UserItem = ({ ...props }) => {
console.log(isOpen);
};
return (
<Container>
{/* 아이템 이미지 */}
<ImgWrap onClick={navgateToDetail}>
<ItemImg
src={
item.cloth_image ||
"https://search.pstatic.net/common/?src=https%3A%2F%2Fshopping-phinf.pstatic.net%2Fmain_8829244%2F88292446418.jpg&type=f372_372"
}
/>
{item.likes == 1 && <HeartImg src={HeartIcon} />}
</ImgWrap>
<>


{props.data[0] !== "해당 제품은 등록되어 있지 않아요." ? (
<Container>
{/* 아이템 이미지 */}
<ImgWrap onClick={navgateToDetail}>
<ItemImg
src={
item.cloth_image ||
"https://search.pstatic.net/common/?src=https%3A%2F%2Fshopping-phinf.pstatic.net%2Fmain_8829244%2F88292446418.jpg&type=f372_372"
}
/>
{item.likes == 1 && <HeartImg src={HeartIcon} />}
</ImgWrap>
{/* 유저정보 */}
<UserInfo {...props}>
{/* 유저 프로필 */}
Expand Down Expand Up @@ -90,7 +89,7 @@ const UserItem = ({ ...props }) => {
</ItemWrap>
</Container>
) : (
<div>상품이 없습니다</div>
<div>데이터가없습니다.</div>
)}
</>
);
Expand Down