Skip to content

Commit

Permalink
Autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjeng committed Mar 12, 2019
1 parent b1cffc0 commit a964658
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/smc-webapp/chat/input.tsx
Expand Up @@ -44,8 +44,8 @@ export class ChatInput extends React.PureComponent<Props> {

control: {
height: "100%",
backgroundColor: 'white',
leftMargin:'2px'
backgroundColor: "white",
leftMargin: "2px"
},

input: {
Expand Down
2 changes: 1 addition & 1 deletion src/smc-webapp/chat/store.ts
Expand Up @@ -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<ChatState> {
Expand Down
12 changes: 6 additions & 6 deletions src/smc-webapp/smc_chat.tsx
Expand Up @@ -932,10 +932,10 @@ class ChatRoom0 extends Component<ChatRoomProps, ChatRoomState> {
}
};

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);
Expand Down Expand Up @@ -1245,7 +1245,7 @@ class ChatRoom0 extends Component<ChatRoomProps, ChatRoomState> {
};

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
Expand All @@ -1255,8 +1255,8 @@ class ChatRoom0 extends Component<ChatRoomProps, ChatRoomState> {
};

on_clear = () => {
this.props.actions.set_input('');
}
this.props.actions.set_input("");
};

render_body() {
const grid_style: React.CSSProperties = {
Expand Down Expand Up @@ -1336,7 +1336,7 @@ class ChatRoom0 extends Component<ChatRoomProps, ChatRoomState> {
complete: this.append_file,
sending: this.start_upload
}}
style={{height: "100%"}}
style={{ height: "100%" }}
>
<ChatInput
input={this.props.input}
Expand Down

0 comments on commit a964658

Please sign in to comment.