Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. view : Handlers msg -> LoggedIn.Model -> Model -> Html msg
  2. view h loggedIn model =
  3. let
  4. t s =
  5. I18Next.t loggedIn.shared.translations s
  6. in
  7. case ( model.communities, loggedIn.profile ) of
  8. ( Loading, _ ) ->
  9. Page.fullPageLoading
  10.  
  11. ( Failed e, _ ) ->
  12. Page.fullPageError (t "menu.my_communities") e
  13.  
  14. ( Loaded communities, LoggedIn.Loaded profile ) ->
  15. div [ class "container mx-auto" ]
  16. [
  17. button
  18. [ onClick (h.showFeedback { message = "Hi!", success = False }) ]
  19. [ text "hello" ]
  20. , div [ class "text-gray-600 text-2xl font-light flex mt-6 mb-4" ]
  21. [ text (t "menu.my_communities")
  22. , div [ class "text-indigo-500 ml-2 font-medium" ]
  23. [ text (profile.userName |> Maybe.withDefault (Eos.nameToString profile.account))
  24. ]
  25. ]
  26. , viewBalances loggedIn communities |> Html.map h.tagger
  27. , viewVerifications loggedIn.shared model |> Html.map h.tagger
  28. , viewSections loggedIn model |> Html.map h.tagger
  29. ]
  30.  
  31. ( _, _ ) ->
  32. Page.fullPageNotFound (t "menu.my_communities") ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement