From e9edead97bdab94add62625d9407e6ccc8f7e7d4 Mon Sep 17 00:00:00 2001 From: Manuel Calavera Date: Thu, 17 Oct 2019 11:42:15 -0700 Subject: [PATCH] fix: stores minors --- src/v2/stores/accounts/detail.js | 2 +- src/v2/stores/accounts/timeline.js | 7 +++---- src/v2/stores/applications/detail.js | 2 +- src/v2/stores/applications/timeline.js | 2 +- src/v2/stores/blocks/detail.js | 2 +- src/v2/stores/blocks/timeline.js | 2 +- src/v2/stores/tourdesol/index.js | 2 +- src/v2/stores/transactions/detail.js | 2 +- src/v2/stores/transactions/timeline.js | 2 +- 9 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/v2/stores/accounts/detail.js b/src/v2/stores/accounts/detail.js index fa688dcf..6610a09d 100644 --- a/src/v2/stores/accounts/detail.js +++ b/src/v2/stores/accounts/detail.js @@ -45,4 +45,4 @@ decorate(Store, { const AccountDetailStore = new Store(); -export default observable(AccountDetailStore); +export default AccountDetailStore; diff --git a/src/v2/stores/accounts/timeline.js b/src/v2/stores/accounts/timeline.js index 1002b829..1ebae63f 100644 --- a/src/v2/stores/accounts/timeline.js +++ b/src/v2/stores/accounts/timeline.js @@ -1,6 +1,6 @@ import {action, flow, observable, decorate} from 'mobx'; import {apiGetAccountsTimelinePage} from 'v2/api/accounts'; -import _ from 'lodash'; +import {map} from 'lodash'; class Store { isLoading = false; @@ -34,7 +34,7 @@ class Store { this.res = res; this.accountTimeline = res.data; - this.accounts = _.map(res.data.pageData.results, x => x[1]); + this.accounts = map(res.data.pageData.results, x => x[1]); this.accountCount = res.data.pageInfo.count; this.next = res.data.pageData.next; this.prev = res.data.pageData.prev; @@ -50,7 +50,6 @@ class Store { decorate(Store, { init: action.bound, start: observable, - accountTimeline: observable, accounts: observable, accountCount: observable, next: observable, @@ -61,4 +60,4 @@ decorate(Store, { const AccountsTimelineStore = new Store(); -export default observable(AccountsTimelineStore); +export default AccountsTimelineStore; diff --git a/src/v2/stores/applications/detail.js b/src/v2/stores/applications/detail.js index 20d72c08..b7e9e8e6 100644 --- a/src/v2/stores/applications/detail.js +++ b/src/v2/stores/applications/detail.js @@ -45,4 +45,4 @@ decorate(Store, { const ApplicationDetailStore = new Store(); -export default observable(ApplicationDetailStore); +export default ApplicationDetailStore; diff --git a/src/v2/stores/applications/timeline.js b/src/v2/stores/applications/timeline.js index f93399a0..8cc520b1 100644 --- a/src/v2/stores/applications/timeline.js +++ b/src/v2/stores/applications/timeline.js @@ -61,4 +61,4 @@ decorate(Store, { const ApplicationsTimelineStore = new Store(); -export default observable(ApplicationsTimelineStore); +export default ApplicationsTimelineStore; diff --git a/src/v2/stores/blocks/detail.js b/src/v2/stores/blocks/detail.js index 80569565..807f1990 100644 --- a/src/v2/stores/blocks/detail.js +++ b/src/v2/stores/blocks/detail.js @@ -36,4 +36,4 @@ decorate(Store, { const BlockDetailStore = new Store(); -export default observable(BlockDetailStore); +export default BlockDetailStore; diff --git a/src/v2/stores/blocks/timeline.js b/src/v2/stores/blocks/timeline.js index f0418a4f..9d56c5fe 100644 --- a/src/v2/stores/blocks/timeline.js +++ b/src/v2/stores/blocks/timeline.js @@ -61,4 +61,4 @@ decorate(Store, { const BlocksTimelineStore = new Store(); -export default observable(BlocksTimelineStore); +export default BlocksTimelineStore; diff --git a/src/v2/stores/tourdesol/index.js b/src/v2/stores/tourdesol/index.js index e145d8ae..783e1eb2 100644 --- a/src/v2/stores/tourdesol/index.js +++ b/src/v2/stores/tourdesol/index.js @@ -56,4 +56,4 @@ decorate(Store, { const TourDeSolIndexStore = new Store(); -export default observable(TourDeSolIndexStore); +export default TourDeSolIndexStore; diff --git a/src/v2/stores/transactions/detail.js b/src/v2/stores/transactions/detail.js index 3cdc2142..6ca88f3a 100644 --- a/src/v2/stores/transactions/detail.js +++ b/src/v2/stores/transactions/detail.js @@ -39,4 +39,4 @@ decorate(Store, { const TransactionDetailStore = new Store(); -export default observable(TransactionDetailStore); +export default TransactionDetailStore; diff --git a/src/v2/stores/transactions/timeline.js b/src/v2/stores/transactions/timeline.js index fc318266..3cac6c48 100644 --- a/src/v2/stores/transactions/timeline.js +++ b/src/v2/stores/transactions/timeline.js @@ -61,4 +61,4 @@ decorate(Store, { const TransactionsTimelineStore = new Store(); -export default observable(TransactionsTimelineStore); +export default TransactionsTimelineStore;