chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user