diff --git a/src/containers/home.js b/src/containers/home.js index d04525c..64dabd3 100644 --- a/src/containers/home.js +++ b/src/containers/home.js @@ -23,17 +23,15 @@ import React, { Component } from 'react'; import { Container } from 'flux/utils'; // import AppDispatcher from '../app-dispatcher'; -import VillasStore from '../stores/villas-store'; import UserStore from '../stores/users-store'; class Home extends Component { static getStores() { - return [ VillasStore ]; + return [ UserStore ]; } static calculateState() { return { - villas: VillasStore.getState(), currentUser: UserStore.getState().currentUser counts: { users: UserStore.getState().users.length diff --git a/src/stores/villas-store.js b/src/stores/villas-store.js deleted file mode 100644 index b553101..0000000 --- a/src/stores/villas-store.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * File: villas-store.js - * Author: Markus Grigull - * Date: 02.03.2017 - * - * This file is part of VILLASweb. - * - * VILLASweb is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VILLASweb is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VILLASweb. If not, see . - ******************************************************************************/ - -import { ReduceStore } from 'flux/utils'; - -import AppDispatcher from '../app-dispatcher'; - -class VillasStore extends ReduceStore { - constructor() { - super(AppDispatcher); - } - - getInitialState() { - return {}; - } - - reduce(state, action) { - switch (action.type) { - default: - return state; - } - } -} - -export default new VillasStore();