// @flow

import {StackNavigator} from 'react-navigation'
import * as c from './views/components/colors'

import CalendarView, {EventDetail as EventDetailView} from './views/calendar'
import {ContactsView} from './views/contacts'
import {DictionaryView, DictionaryDetailView} from './views/dictionary'
import {HomeView, EditHomeView} from './views/home'
import StreamingView from './views/streaming'
import {MenusView} from './views/menus'
import {FilterView} from './views/components/filter'
import NewsView from './views/news'
import NewsItemView from './views/news/news-item'
import SISView from './views/sis'
import JobDetailView from './views/sis/student-work/detail'
import {
  BuildingHoursView,
  BuildingHoursDetailView,
} from './views/building-hours'
import TransportationView from './views/transportation'
import SettingsView from './views/settings'
import SISLoginView from './views/settings/login'
import CreditsView from './views/settings/credits'
import PrivacyView from './views/settings/privacy'
import LegalView from './views/settings/legal'
import {StudentOrgsView, StudentOrgsDetailView} from './views/student-orgs'
import {FaqView} from './views/faqs'
// import {SnapshotsView} from './storybook'
import HelpView from './views/help'

export const AppNavigator = StackNavigator(
  {
    HomeView: {screen: HomeView},
    BuildingHoursView: {screen: BuildingHoursView},
    BuildingHoursDetailView: {screen: BuildingHoursDetailView},
    CalendarView: {screen: CalendarView},
    CreditsView: {screen: CreditsView},
    DictionaryView: {screen: DictionaryView},
    DictionaryDetailView: {screen: DictionaryDetailView},
    EditHomeView: {screen: EditHomeView},
    EventDetailView: {screen: EventDetailView},
    FaqView: {screen: FaqView},
    FilterView: {screen: FilterView},
    HelpView: {screen: HelpView},
    ImportantContactsView: {screen: ContactsView},
    JobDetailView: {screen: JobDetailView},
    LegalView: {screen: LegalView},
    MenusView: {screen: MenusView},
    NewsView: {screen: NewsView},
    NewsItemView: {screen: NewsItemView},
    PrivacyView: {screen: PrivacyView},
    SettingsView: {screen: SettingsView},
    SISView: {screen: SISView},
    SISLoginView: {screen: SISLoginView},
    // Snapshots: {screen: SnapshotsView},
    StreamingView: {screen: StreamingView},
    StudentOrgsView: {screen: StudentOrgsView},
    StudentOrgsDetailView: {screen: StudentOrgsDetailView},
    TransportationView: {screen: TransportationView},
  },
  {
    navigationOptions: {
      headerStyle: {
        backgroundColor: c.olevilleGold,
      },
      headerTintColor: c.white,
    },
  },
)

@@ -1344,24 +1344,30 @@
 uildingHours
+Detail
 View: %7Bscree
@@ -1378,24 +1378,30 @@
 uildingHours
+Detail
 View%7D,%0A    B
@@ -1404,38 +1404,32 @@
    BuildingHours
-Detail
 View: %7Bscreen: B
@@ -1432,38 +1432,32 @@
 n: BuildingHours
-Detail
 View%7D,%0A    Calen
@@ -1494,20 +1494,21 @@
 %7D,%0A    C
-redi
+ontac
 tsView: 
@@ -1517,20 +1517,21 @@
 creen: C
-redi
+ontac
 tsView%7D,
@@ -1535,26 +1535,23 @@
 w%7D,%0A    
-Dictionary
+Credits
 View: %7Bs
@@ -1557,26 +1557,23 @@
 screen: 
-Dictionary
+Credits
 View%7D,%0A 
@@ -1625,24 +1625,70 @@
 etailView%7D,%0A
+    DictionaryView: %7Bscreen: DictionaryView%7D,%0A
     EditHome
@@ -1873,59 +1873,8 @@
 w%7D,%0A
-    ImportantContactsView: %7Bscreen: ContactsView%7D,%0A
     
@@ -1989,42 +1989,8 @@
 w%7D,%0A
-    NewsView: %7Bscreen: NewsView%7D,%0A
     
@@ -2023,24 +2023,58 @@
 sItemView%7D,%0A
+    NewsView: %7Bscreen: NewsView%7D,%0A
     PrivacyV
@@ -2146,24 +2146,29 @@
 ew%7D,%0A    SIS
+Login
 View: %7Bscree
@@ -2169,24 +2169,29 @@
 %7Bscreen: SIS
+Login
 View%7D,%0A    S
@@ -2184,37 +2184,32 @@
 inView%7D,%0A    SIS
-Login
 View: %7Bscreen: S
@@ -2202,37 +2202,32 @@
 ew: %7Bscreen: SIS
-Login
 View%7D,%0A    // Sn
@@ -2233,16 +2233,20 @@
 napshots
+View
 : %7Bscree
@@ -2319,24 +2319,30 @@
  StudentOrgs
+Detail
 View: %7Bscree
@@ -2351,24 +2351,30 @@
  StudentOrgs
+Detail
 View%7D,%0A    S
@@ -2375,38 +2375,32 @@
 %0A    StudentOrgs
-Detail
 View: %7Bscreen: S
@@ -2401,38 +2401,32 @@
 een: StudentOrgs
-Detail
 View%7D,%0A    Trans

fix sorting in navigation's object