Skip to content

Commit

Permalink
fix : div -> img
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiSangwon committed Jun 12, 2024
1 parent 5385da5 commit 9d6e399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/pages/main/main.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,13 @@ export const ImageButton = styled.img`
border: none;
cursor: pointer;
`;
interface ProfileCircleProps {
imageUrl: string;
}

export const ProfileCircle = styled.div<ProfileCircleProps>`
export const ProfileCircle = styled.img`
width: 196px;
height: 196px;
background-color: white;
border-radius: 50%;
flex: none;
background-image: url(${(props) => props.imageUrl});
`;

export const ProfileTopContainer = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/pages/main/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function Main() {
onClick={handlePrevClick}
/>
<styles.ProfileCircle
imageUrl={
src={
mentorData !== null
? mentorData[currentIndex].picture.slice(1, -1)
: "https://picsum.photos/250/250"
Expand Down

0 comments on commit 9d6e399

Please sign in to comment.