Skip to content

Commit

Permalink
refactor/BibimMandu-IssueTacker#215: Comment 컴포넌트 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdflrgs committed Aug 18, 2023
1 parent f675724 commit 2ad4bec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FE/src/components/Comment/Comment.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { styled } from "styled-components";
import { AssigneesList } from "../../type";
import UserProfileButton from "../UserProfileButton/UserProfileButton";
import { calculateTime } from "../../utils/calculateTime";
import Button from "../common/Button/Button";
import { useEffect, useState } from "react";
Expand Down Expand Up @@ -122,7 +121,7 @@ export default function Comment({
<CommentWrapper $isEdit={isEdit}>
<Header>
<Info>
<UserProfileButton src={author.profileImageUrl} />
<UserProfileImg src={author.profileImageUrl} />
<UserName>{author.nickname}</UserName>
<Time>{calculateTime(createAt)}</Time>
</Info>
Expand Down Expand Up @@ -207,6 +206,12 @@ const Header = styled.div`
border-top-right-radius: inherit;
`;

const UserProfileImg = styled.img`
width: 32px;
height: 32px;
border-radius: ${({ theme }) => theme.radius.half};
`;

const Info = styled.div`
display: flex;
gap: 8px;
Expand Down

0 comments on commit 2ad4bec

Please sign in to comment.