chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// @flow
|
||||
import * as React from 'react';
|
||||
import { inject } from 'mobx-react';
|
||||
import type { RouterHistory, Location } from 'react-router-dom';
|
||||
import Flex from 'shared/components/Flex';
|
||||
import CenteredContent from 'components/CenteredContent';
|
||||
import LoadingPlaceholder from 'components/LoadingPlaceholder';
|
||||
import DocumentsStore from 'stores/DocumentsStore';
|
||||
import UiStore from 'stores/UiStore';
|
||||
import { documentEditUrl } from 'utils/routeHelpers';
|
||||
import * as React from "react";
|
||||
import { inject } from "mobx-react";
|
||||
import type { RouterHistory, Location } from "react-router-dom";
|
||||
import Flex from "shared/components/Flex";
|
||||
import CenteredContent from "components/CenteredContent";
|
||||
import LoadingPlaceholder from "components/LoadingPlaceholder";
|
||||
import DocumentsStore from "stores/DocumentsStore";
|
||||
import UiStore from "stores/UiStore";
|
||||
import { documentEditUrl } from "utils/routeHelpers";
|
||||
|
||||
type Props = {
|
||||
history: RouterHistory,
|
||||
@@ -23,14 +23,14 @@ class DocumentNew extends React.Component<Props> {
|
||||
const document = await this.props.documents.create({
|
||||
collectionId: this.props.match.params.id,
|
||||
parentDocumentId: new URLSearchParams(this.props.location.search).get(
|
||||
'parentDocumentId'
|
||||
"parentDocumentId"
|
||||
),
|
||||
title: '',
|
||||
text: '',
|
||||
title: "",
|
||||
text: "",
|
||||
});
|
||||
this.props.history.replace(documentEditUrl(document));
|
||||
} catch (err) {
|
||||
this.props.ui.showToast('Couldn’t create the document, try again?');
|
||||
this.props.ui.showToast("Couldn’t create the document, try again?");
|
||||
this.props.history.goBack();
|
||||
}
|
||||
}
|
||||
@@ -46,4 +46,4 @@ class DocumentNew extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
export default inject('documents', 'ui')(DocumentNew);
|
||||
export default inject("documents", "ui")(DocumentNew);
|
||||
|
||||
Reference in New Issue
Block a user