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,20 +1,20 @@
// @flow
import * as React from 'react';
import { withRouter, type RouterHistory } from 'react-router-dom';
import { observable } from 'mobx';
import { inject, observer } from 'mobx-react';
import { intersection } from 'lodash';
import Button from 'components/Button';
import Switch from 'components/Switch';
import Input from 'components/Input';
import InputRich from 'components/InputRich';
import IconPicker, { icons } from 'components/IconPicker';
import HelpText from 'components/HelpText';
import Flex from 'shared/components/Flex';
import * as React from "react";
import { withRouter, type RouterHistory } from "react-router-dom";
import { observable } from "mobx";
import { inject, observer } from "mobx-react";
import { intersection } from "lodash";
import Button from "components/Button";
import Switch from "components/Switch";
import Input from "components/Input";
import InputRich from "components/InputRich";
import IconPicker, { icons } from "components/IconPicker";
import HelpText from "components/HelpText";
import Flex from "shared/components/Flex";
import Collection from 'models/Collection';
import CollectionsStore from 'stores/CollectionsStore';
import UiStore from 'stores/UiStore';
import Collection from "models/Collection";
import CollectionsStore from "stores/CollectionsStore";
import UiStore from "stores/UiStore";
type Props = {
history: RouterHistory,
@@ -25,10 +25,10 @@ type Props = {
@observer
class CollectionNew extends React.Component<Props> {
@observable name: string = '';
@observable description: string = '';
@observable icon: string = '';
@observable color: string = '#4E5C6E';
@observable name: string = "";
@observable description: string = "";
@observable icon: string = "";
@observable color: string = "#4E5C6E";
@observable private: boolean = false;
@observable isSaving: boolean;
hasOpenedIconPicker: boolean = false;
@@ -67,8 +67,8 @@ class CollectionNew extends React.Component<Props> {
const keys = Object.keys(icons);
for (const key of keys) {
const icon = icons[key];
const keywords = icon.keywords.split(' ');
const namewords = this.name.toLowerCase().split(' ');
const keywords = icon.keywords.split(" ");
const namewords = this.name.toLowerCase().split(" ");
const matches = intersection(namewords, keywords);
if (matches.length > 0) {
@@ -77,7 +77,7 @@ class CollectionNew extends React.Component<Props> {
}
}
this.icon = 'collection';
this.icon = "collection";
}
};
@@ -127,7 +127,7 @@ class CollectionNew extends React.Component<Props> {
<InputRich
label="Description"
onChange={this.handleDescriptionChange}
defaultValue={this.description || ''}
defaultValue={this.description || ""}
placeholder="More details about this collection…"
minHeight={68}
maxHeight={200}
@@ -143,11 +143,11 @@ class CollectionNew extends React.Component<Props> {
</HelpText>
<Button type="submit" disabled={this.isSaving || !this.name}>
{this.isSaving ? 'Creating…' : 'Create'}
{this.isSaving ? "Creating…" : "Create"}
</Button>
</form>
);
}
}
export default inject('collections', 'ui')(withRouter(CollectionNew));
export default inject("collections", "ui")(withRouter(CollectionNew));