From a9646583f345fcbd7837e0c3ff22c10d0f31d123 Mon Sep 17 00:00:00 2001 From: John Jeng Date: Tue, 12 Mar 2019 22:49:53 +0000 Subject: [PATCH] Autoformatting --- src/smc-webapp/chat/input.tsx | 4 ++-- src/smc-webapp/chat/store.ts | 2 +- src/smc-webapp/smc_chat.tsx | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/smc-webapp/chat/input.tsx b/src/smc-webapp/chat/input.tsx index 18c181c306..9be7c29112 100644 --- a/src/smc-webapp/chat/input.tsx +++ b/src/smc-webapp/chat/input.tsx @@ -44,8 +44,8 @@ export class ChatInput extends React.PureComponent { control: { height: "100%", - backgroundColor: 'white', - leftMargin:'2px' + backgroundColor: "white", + leftMargin: "2px" }, input: { diff --git a/src/smc-webapp/chat/store.ts b/src/smc-webapp/chat/store.ts index 0004e77c59..72fa6e5591 100644 --- a/src/smc-webapp/chat/store.ts +++ b/src/smc-webapp/chat/store.ts @@ -20,7 +20,7 @@ interface ChatState { is_saving: boolean; has_uncommitted_changes: boolean; has_unsaved_changes: boolean; - unsent_user_mentions: immutable.List<{id: string, display: string}>; + unsent_user_mentions: immutable.List<{ id: string; display: string }>; } export class ChatStore extends Store { diff --git a/src/smc-webapp/smc_chat.tsx b/src/smc-webapp/smc_chat.tsx index 8931e32f93..c6c3561471 100644 --- a/src/smc-webapp/smc_chat.tsx +++ b/src/smc-webapp/smc_chat.tsx @@ -932,10 +932,10 @@ class ChatRoom0 extends Component { } }; - on_send_button_click = (e) => { + on_send_button_click = e => { e.preventDefault(); this.on_send(this.props.input); - } + }; button_scroll_to_bottom = () => { scroll_to_bottom(this.refs.log_container, this.props.actions); @@ -1245,7 +1245,7 @@ class ChatRoom0 extends Component { }; on_send = input => { - scroll_to_bottom(this.refs.log_container, this.props.actions) + scroll_to_bottom(this.refs.log_container, this.props.actions); this.props.actions.submit_user_mentions( this.props.project_id, this.props.path @@ -1255,8 +1255,8 @@ class ChatRoom0 extends Component { }; on_clear = () => { - this.props.actions.set_input(''); - } + this.props.actions.set_input(""); + }; render_body() { const grid_style: React.CSSProperties = { @@ -1336,7 +1336,7 @@ class ChatRoom0 extends Component { complete: this.append_file, sending: this.start_upload }} - style={{height: "100%"}} + style={{ height: "100%" }} >