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
fit the emoji panel to message tag #14647
base: master
Are you sure you want to change the base?
fit the emoji panel to message tag #14647
Conversation
Hi, thanks for your contribution! |
please review this code |
@@ -64,9 +65,11 @@ class ChatInput extends Component<IProps, IState> { | |||
|
|||
state = { | |||
message: '', | |||
messages: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused.
showSmileysPanel: false | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid newline changes.
<div | ||
className = 'smileys-panel' > | ||
<SmileysPanel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this smileys panel used anywhere else now? If not we should delete it.
onClick = { this._onSubmitMessage } | ||
onClick={() => { | ||
this._onSubmitMessage() | ||
this._toggleSmileysPanel();}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? Seems strange to toggle on/off the smiley panel each time a message is sent.
fit the emoji panel to message tag
if any issue feel free to contact me via email: viraj123e@gmail.com