1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

add comment with current user avatar (#2452)

This commit is contained in:
Mateusz Kwasniewski 2022-11-16 17:03:05 +01:00 committed by GitHub
parent 978674e33a
commit e25a108ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,12 +19,6 @@ import PermissionButton from 'component/common/PermissionButton/PermissionButton
import { APPLY_CHANGE_REQUEST } from 'component/providers/AccessProvider/permissions';
import { useAuthUser } from 'hooks/api/getters/useAuth/useAuthUser';
import AccessContext from 'contexts/AccessContext';
import {
StyledAvatar,
StyledCard,
} from './ChangeRequestHeader/ChangeRequestHeader.styles';
import TimeAgo from 'react-timeago';
import { InputProps as StandardInputProps } from '@mui/material/Input/Input';
import { ChangeRequestComment } from './ChangeRequestComments/ChangeRequestComment';
import { AddCommentField } from './ChangeRequestComments/AddCommentField';
@ -140,7 +134,7 @@ export const ChangeRequestOverview: FC = () => {
/>
))}
<AddCommentField
imageUrl={changeRequest?.createdBy?.imageUrl}
imageUrl={user?.imageUrl || ''}
commentText={commentText}
onAddComment={onAddComment}
onTypeComment={setCommentText}