Commit 2ab528e

mo khan <mo@mokhan.ca>
2016-12-22 17:02:59
inject app storage.
1 parent 85282d4
Changed files (2)
app
app/screens/dashboard-screen.js
@@ -1,7 +1,6 @@
 import React, { Component } from 'react';
-import { View, Image } from 'react-native';
+import { Image } from 'react-native';
 import { Container, Header, Title, Content, Footer, FooterTab, Button, Icon, Spinner } from 'native-base';
-import ApplicationStorage from '../infrastructure/application-storage';
 import ApplicationComponent from '../components/application-component';
 import Workout from '../components/workout';
 import * as events from '../services/events';
app/services/commands/logout-command.js
@@ -1,5 +1,8 @@
+import ApplicationStorage from '../../infrastructure/application-storage';
+
 export default class LogoutCommand {
-  constructor(applicationStorage) {
+  constructor(eventAggregator, applicationStorage = new ApplicationStorage()) {
+    this.eventAggregator = eventAggregator;
     this.applicationStorage = applicationStorage;
   }