Skip to content

Commit

Permalink
edited to go to reply message
Browse files Browse the repository at this point in the history
  • Loading branch information
esracoskun committed Jun 29, 2022
1 parent 7a3f331 commit be32377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MessageBox/MessageBox.tsx
Expand Up @@ -129,7 +129,7 @@ const MessageBox: React.FC<MessageBoxType> = ({ focus = false, notch = true, ...
</div>
)}

{props.reply && <ReplyMessage {...props.reply} />}
{props.reply && <ReplyMessage onClick={props.onReplyMessageClick} {...props.reply} />}

{props.type === 'text' && (
<div
Expand Down
4 changes: 2 additions & 2 deletions src/ReplyMessage/ReplyMessage.tsx
Expand Up @@ -4,14 +4,14 @@ import './ReplyMessage.css'
import classNames from 'classnames'
import { IReplyMessageProps } from '../type'

const ReplyMessage: React.FC<IReplyMessageProps> = props => {
const ReplyMessage: React.FC<IReplyMessageProps> = ({onClick, ...props}) => {
return (
<div
className={classNames('rce-mbox-reply', {
'rce-mbox-reply-border': !!props.titleColor,
})}
style={{ ...(props.titleColor && { borderColor: props.titleColor }) }}
onClick={props.onClick}
onClick={onClick}
>
<div className='rce-mbox-reply-left'>
<div style={{ ...(props.titleColor && { color: props.titleColor }) }} className='rce-mbox-reply-owner'>
Expand Down

0 comments on commit be32377

Please sign in to comment.