Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: stores minors
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-calavera committed Oct 17, 2019
1 parent 09a689a commit e9edead
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/v2/stores/accounts/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ decorate(Store, {

const AccountDetailStore = new Store();

export default observable(AccountDetailStore);
export default AccountDetailStore;
7 changes: 3 additions & 4 deletions src/v2/stores/accounts/timeline.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -50,7 +50,6 @@ class Store {
decorate(Store, {
init: action.bound,
start: observable,
accountTimeline: observable,
accounts: observable,
accountCount: observable,
next: observable,
Expand All @@ -61,4 +60,4 @@ decorate(Store, {

const AccountsTimelineStore = new Store();

export default observable(AccountsTimelineStore);
export default AccountsTimelineStore;
2 changes: 1 addition & 1 deletion src/v2/stores/applications/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ decorate(Store, {

const ApplicationDetailStore = new Store();

export default observable(ApplicationDetailStore);
export default ApplicationDetailStore;
2 changes: 1 addition & 1 deletion src/v2/stores/applications/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ decorate(Store, {

const ApplicationsTimelineStore = new Store();

export default observable(ApplicationsTimelineStore);
export default ApplicationsTimelineStore;
2 changes: 1 addition & 1 deletion src/v2/stores/blocks/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ decorate(Store, {

const BlockDetailStore = new Store();

export default observable(BlockDetailStore);
export default BlockDetailStore;
2 changes: 1 addition & 1 deletion src/v2/stores/blocks/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ decorate(Store, {

const BlocksTimelineStore = new Store();

export default observable(BlocksTimelineStore);
export default BlocksTimelineStore;
2 changes: 1 addition & 1 deletion src/v2/stores/tourdesol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ decorate(Store, {

const TourDeSolIndexStore = new Store();

export default observable(TourDeSolIndexStore);
export default TourDeSolIndexStore;
2 changes: 1 addition & 1 deletion src/v2/stores/transactions/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ decorate(Store, {

const TransactionDetailStore = new Store();

export default observable(TransactionDetailStore);
export default TransactionDetailStore;
2 changes: 1 addition & 1 deletion src/v2/stores/transactions/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ decorate(Store, {

const TransactionsTimelineStore = new Store();

export default observable(TransactionsTimelineStore);
export default TransactionsTimelineStore;

0 comments on commit e9edead

Please sign in to comment.