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;