chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
// @flow
|
||||
import * as React from 'react';
|
||||
import { observable } from 'mobx';
|
||||
import { inject, observer } from 'mobx-react';
|
||||
import Input from 'components/Input';
|
||||
import InputRich from 'components/InputRich';
|
||||
import Button from 'components/Button';
|
||||
import Switch from 'components/Switch';
|
||||
import Flex from 'shared/components/Flex';
|
||||
import HelpText from 'components/HelpText';
|
||||
import IconPicker from 'components/IconPicker';
|
||||
import Collection from 'models/Collection';
|
||||
import UiStore from 'stores/UiStore';
|
||||
import * as React from "react";
|
||||
import { observable } from "mobx";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import Input from "components/Input";
|
||||
import InputRich from "components/InputRich";
|
||||
import Button from "components/Button";
|
||||
import Switch from "components/Switch";
|
||||
import Flex from "shared/components/Flex";
|
||||
import HelpText from "components/HelpText";
|
||||
import IconPicker from "components/IconPicker";
|
||||
import Collection from "models/Collection";
|
||||
import UiStore from "stores/UiStore";
|
||||
|
||||
type Props = {
|
||||
collection: Collection,
|
||||
@@ -21,9 +21,9 @@ type Props = {
|
||||
@observer
|
||||
class CollectionEdit extends React.Component<Props> {
|
||||
@observable name: string;
|
||||
@observable description: string = '';
|
||||
@observable icon: string = '';
|
||||
@observable color: string = '#4E5C6E';
|
||||
@observable description: string = "";
|
||||
@observable icon: string = "";
|
||||
@observable color: string = "#4E5C6E";
|
||||
@observable isSaving: boolean;
|
||||
@observable private: boolean = false;
|
||||
|
||||
@@ -48,7 +48,7 @@ class CollectionEdit extends React.Component<Props> {
|
||||
private: this.private,
|
||||
});
|
||||
this.props.onSubmit();
|
||||
this.props.ui.showToast('The collection was updated');
|
||||
this.props.ui.showToast("The collection was updated");
|
||||
} catch (err) {
|
||||
this.props.ui.showToast(err.message);
|
||||
} finally {
|
||||
@@ -102,7 +102,7 @@ class CollectionEdit extends React.Component<Props> {
|
||||
id={this.props.collection.id}
|
||||
label="Description"
|
||||
onChange={this.handleDescriptionChange}
|
||||
defaultValue={this.description || ''}
|
||||
defaultValue={this.description || ""}
|
||||
placeholder="More details about this collection…"
|
||||
minHeight={68}
|
||||
maxHeight={200}
|
||||
@@ -120,7 +120,7 @@ class CollectionEdit extends React.Component<Props> {
|
||||
type="submit"
|
||||
disabled={this.isSaving || !this.props.collection.name}
|
||||
>
|
||||
{this.isSaving ? 'Saving…' : 'Save'}
|
||||
{this.isSaving ? "Saving…" : "Save"}
|
||||
</Button>
|
||||
</form>
|
||||
</Flex>
|
||||
@@ -128,4 +128,4 @@ class CollectionEdit extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
export default inject('ui')(CollectionEdit);
|
||||
export default inject("ui")(CollectionEdit);
|
||||
|
||||
Reference in New Issue
Block a user