@@ -67,11 +67,12 @@ type alias MenuConfig msg =
67 , items : List { icon : String, name : String, trigger : msg, current : Bool }
67 , items : List { icon : String, name : String, trigger : msg, current : Bool }
68 , toggle : msg
68 , toggle : msg
69 , visible : Bool
69 , visible : Bool
73mapMenuConfig : (a -> b) -> MenuConfig a -> MenuConfig b
74mapMenuConfig : (a -> b) -> MenuConfig a -> MenuConfig b
74−mapMenuConfig f { title, items, toggle, visible } =
75+mapMenuConfig f { title, items, toggle, visible, logOut } =
77 (\{ icon, name, trigger, current } ->
78 (\{ icon, name, trigger, current } ->
@@ -81,16 +82,23 @@ mapMenuConfig f { title, items, toggle, visible } =
81 , title = title
82 , title = title
82 , toggle = f toggle
83 , toggle = f toggle
83 , visible = visible
84 , visible = visible
87menu : MenuConfig msg -> Html msg
89menu : MenuConfig msg -> Html msg
88−menu { title, items, toggle, visible } =
90+menu { title, items, toggle, visible, logOut } =
89 div [ Attr.class "p-side-navigation--icons", Attr.classList [ ( "is-drawer-expanded", visible ) ] ]
91 div [ Attr.class "p-side-navigation--icons", Attr.classList [ ( "is-drawer-expanded", visible ) ] ]
90 [ div [ Attr.class "p-side-navigation__overlay" ] []
92 [ div [ Attr.class "p-side-navigation__overlay" ] []
91 , nav [ Attr.class "p-side-navigation__drawer" ]
93 , nav [ Attr.class "p-side-navigation__drawer" ]
92 [ div [ Attr.class "p-side-navigation__drawer-header" ]
94 [ div [ Attr.class "p-side-navigation__drawer-header" ]
93 [ a [ Attr.class "p-side-navigation__toggle--in-drawer", Ev.onClick toggle ] [ text title ]
95 [ a [ Attr.class "p-side-navigation__toggle--in-drawer", Ev.onClick toggle ] [ text title ]
97+ [ Attr.class "p-button--negative is-inline u-float-right"
98+ , Attr.style "margin-right" "1rem"
95 , ul [ Attr.class "p-side-navigation__list" ]
103 , ul [ Attr.class "p-side-navigation__list" ]