Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- view : Handlers msg -> LoggedIn.Model -> Model -> Html msg
- view h loggedIn model =
- let
- t s =
- I18Next.t loggedIn.shared.translations s
- in
- case ( model.communities, loggedIn.profile ) of
- ( Loading, _ ) ->
- Page.fullPageLoading
- ( Failed e, _ ) ->
- Page.fullPageError (t "menu.my_communities") e
- ( Loaded communities, LoggedIn.Loaded profile ) ->
- div [ class "container mx-auto" ]
- [
- button
- [ onClick (h.showFeedback { message = "Hi!", success = False }) ]
- [ text "hello" ]
- , div [ class "text-gray-600 text-2xl font-light flex mt-6 mb-4" ]
- [ text (t "menu.my_communities")
- , div [ class "text-indigo-500 ml-2 font-medium" ]
- [ text (profile.userName |> Maybe.withDefault (Eos.nameToString profile.account))
- ]
- ]
- , viewBalances loggedIn communities |> Html.map h.tagger
- , viewVerifications loggedIn.shared model |> Html.map h.tagger
- , viewSections loggedIn model |> Html.map h.tagger
- ]
- ( _, _ ) ->
- Page.fullPageNotFound (t "menu.my_communities") ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement