You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dashboard/src/stores/Index.js

22 lines
509 B
JavaScript

3 years ago
import React from "react";
import {observable, action} from 'mobx';
import DashboardStore from "./DashboardStore";
import OrdersStore from "./OrdersStore";
class Index {
constructor(history) {
this.history = history;
this.pathname = history.location.pathname;
this.dashboard_store = new DashboardStore();
this.orders_store = new OrdersStore();
}
@action goBack() {
this.history.goBack();
}
@observable animating = false;
}
export default Index;