diff options
| author | mo khan <mo@mokhan.ca> | 2016-12-22 10:02:59 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-12-22 10:02:59 -0700 |
| commit | 2ab528eb3cced90a3b2d07d933536fb5c2b221a0 (patch) | |
| tree | 16994b7bffa54b5ef39f94690ce895925c7353c6 | |
| parent | 85282d4bab1b824173ff043013db85a7d8ec5df2 (diff) | |
inject app storage.
| -rw-r--r-- | app/screens/dashboard-screen.js | 3 | ||||
| -rw-r--r-- | app/services/commands/logout-command.js | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/app/screens/dashboard-screen.js b/app/screens/dashboard-screen.js index 208fec0..8674edf 100644 --- a/app/screens/dashboard-screen.js +++ b/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'; diff --git a/app/services/commands/logout-command.js b/app/services/commands/logout-command.js index 0586997..a337230 100644 --- a/app/services/commands/logout-command.js +++ b/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; } |
