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,13 +1,13 @@
// @flow
import { sortBy } from 'lodash';
import { action, computed } from 'mobx';
import { client } from 'utils/ApiClient';
import BaseStore from './BaseStore';
import RootStore from './RootStore';
import Share from 'models/Share';
import { sortBy } from "lodash";
import { action, computed } from "mobx";
import { client } from "utils/ApiClient";
import BaseStore from "./BaseStore";
import RootStore from "./RootStore";
import Share from "models/Share";
export default class SharesStore extends BaseStore<Share> {
actions = ['list', 'create'];
actions = ["list", "create"];
constructor(rootStore: RootStore) {
super(rootStore, Share);
@@ -15,12 +15,12 @@ export default class SharesStore extends BaseStore<Share> {
@computed
get orderedData(): Share[] {
return sortBy(Array.from(this.data.values()), 'createdAt').reverse();
return sortBy(Array.from(this.data.values()), "createdAt").reverse();
}
@action
revoke = async (share: Share) => {
await client.post('/shares.revoke', { id: share.id });
await client.post("/shares.revoke", { id: share.id });
this.remove(share.id);
};
}