chore: Move to prettier standard double quotes (#1309)

This commit is contained in:
Tom Moor
2020-06-20 13:59:15 -07:00
committed by GitHub
parent 2a3b9e2104
commit f43deb7940
444 changed files with 5988 additions and 5977 deletions

View File

@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
import { SocketContext } from 'components/SocketProvider';
import { USER_PRESENCE_INTERVAL } from 'shared/constants';
import * as React from "react";
import { SocketContext } from "components/SocketProvider";
import { USER_PRESENCE_INTERVAL } from "shared/constants";
type Props = {
children?: React.Node,
@@ -33,8 +33,8 @@ export default class SocketPresence extends React.Component<Props> {
componentWillUnmount() {
if (this.context) {
this.context.emit('leave', { documentId: this.props.documentId });
this.context.off('authenticated', this.emitJoin);
this.context.emit("leave", { documentId: this.props.documentId });
this.context.off("authenticated", this.emitJoin);
}
clearInterval(this.editingInterval);
@@ -47,7 +47,7 @@ export default class SocketPresence extends React.Component<Props> {
if (this.context.authenticated) {
this.emitJoin();
}
this.context.on('authenticated', () => {
this.context.on("authenticated", () => {
this.emitJoin();
});
}
@@ -56,7 +56,7 @@ export default class SocketPresence extends React.Component<Props> {
emitJoin = () => {
if (!this.context) return;
this.context.emit('join', {
this.context.emit("join", {
documentId: this.props.documentId,
isEditing: this.props.isEditing,
});
@@ -65,7 +65,7 @@ export default class SocketPresence extends React.Component<Props> {
emitPresence = () => {
if (!this.context) return;
this.context.emit('presence', {
this.context.emit("presence", {
documentId: this.props.documentId,
isEditing: this.props.isEditing,
});