diff options
author | Joris | 2016-03-29 23:46:47 +0200 |
---|---|---|
committer | Joris | 2016-03-29 23:46:47 +0200 |
commit | 76f8b85eb9f796d6df861a04f702ef5f48630795 (patch) | |
tree | c8b975df9854994cbbefff15908ad9bb728264bc /src/client/elm/LoggedIn/View.elm | |
parent | cc58377a48d13ef85cedb5ec0e19eb8b879dd497 (diff) |
Move logged data to LoggedIn component
Diffstat (limited to 'src/client/elm/LoggedIn/View.elm')
-rw-r--r-- | src/client/elm/LoggedIn/View.elm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/client/elm/LoggedIn/View.elm b/src/client/elm/LoggedIn/View.elm index 27bf31a..5f7ae71 100644 --- a/src/client/elm/LoggedIn/View.elm +++ b/src/client/elm/LoggedIn/View.elm @@ -2,8 +2,6 @@ module LoggedIn.View ( view ) where -import Signal exposing (Address) - import Html exposing (..) import TransitRouter @@ -11,13 +9,16 @@ import Route exposing (..) import Action exposing (Action) import Model exposing (Model) +import LoggedData import LoggedIn.Model as LoggedInModel import LoggedIn.Home.View as HomeView -view : Address Action -> Model -> LoggedInModel.Model -> Html -view address model loggedIn = - case TransitRouter.getRoute model of - Home -> HomeView.view address model loggedIn.home - User -> text "" +view : Model -> LoggedInModel.Model -> Html +view model loggedIn = + let loggedData = LoggedData.build model loggedIn + in case TransitRouter.getRoute model of + Empty -> text "" + Home -> HomeView.view loggedData loggedIn.home + User -> text "" |