mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
chat: fix code mode issue
This commit is contained in:
parent
1b0cb6694e
commit
7feb89f653
@ -47,6 +47,7 @@ export default class ChatEditor extends Component {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
const { props } = this;
|
||||
|
||||
if (prevProps.message !== props.message) {
|
||||
this.editor.setValue(props.message);
|
||||
this.editor.setOption('mode', MARKDOWN_CONFIG);
|
||||
|
@ -173,14 +173,6 @@ export class ChatInput extends Component {
|
||||
setTimeout(this.closure, 2000);*/
|
||||
}
|
||||
|
||||
toggleCode() {
|
||||
if(this.state.code) {
|
||||
this.setState({ code: false });
|
||||
} else {
|
||||
this.setState({ code: true });
|
||||
}
|
||||
}
|
||||
|
||||
uploadSuccess(url) {
|
||||
const { props } = this;
|
||||
props.api.chat.message(
|
||||
|
Loading…
Reference in New Issue
Block a user