diff --git a/src/containers/home.js b/src/components/home.js
similarity index 75%
rename from src/containers/home.js
rename to src/components/home.js
index c365f0f..82d4a1e 100644
--- a/src/containers/home.js
+++ b/src/components/home.js
@@ -19,39 +19,31 @@
* along with VILLASweb. If not, see
- This instance is hosting {this.state.projects.length} projects consisting of {this.state.nodes.length} nodes and {this.state.simulations.length} simulations.
+ This instance is hosting {this.getCounts('projects')} projects consisting of {this.getCounts('nodes')} nodes, {this.getCounts('visualizations')} visualizations and {this.getCounts('simulators')} simulations.
+ A total of {this.getCounts('users')} users are registered.
VILLASweb is developed by the Institute for Automation of Complex Power Systems at the RWTH Aachen University.
@@ -94,4 +87,4 @@ class Home extends Component { } } -export default Container.create(Home); +export default Home; diff --git a/src/containers/app.js b/src/containers/app.js index d4edcea..85a2b63 100644 --- a/src/containers/app.js +++ b/src/containers/app.js @@ -35,12 +35,12 @@ import UserStore from '../stores/user-store'; import DesignStore from '../stores/design-store'; import NotificationsDataManager from '../data-managers/notifications-data-manager'; +import Home from '../components/home'; import Header from '../components/header'; import Footer from '../components/footer'; import SidebarMenu from '../components/menu-sidebar'; import HeaderMenu from '../components/header-menu'; -import Home from './home'; import Projects from './projects'; import Project from './project'; import Simulators from './simulators';