diff --git a/src/web/ui/src/App.fs b/src/web/ui/src/App.fs index e954faff2..802ccf151 100644 --- a/src/web/ui/src/App.fs +++ b/src/web/ui/src/App.fs @@ -22,7 +22,7 @@ open ServiceContext let topLevel (sc:ServiceContext.ServiceContext) currentPage dispatch content = div [ Class "columns is-fullheight" ] - [ Nav.root currentPage sc dispatch + [ Nav.navRoot currentPage sc dispatch div [ Class "column is-main-content" ] [ content] (* diff --git a/src/web/ui/src/Nav.fs b/src/web/ui/src/Nav.fs index 03d6c71ba..dccdc36f1 100644 --- a/src/web/ui/src/Nav.fs +++ b/src/web/ui/src/Nav.fs @@ -17,6 +17,8 @@ open Fable.Helpers.React.Props open Elmish.React.Common open ServiceContext open Fable.Helpers +open Imports +open Fable.Import.React let isCurrentPage page currentPage = match page, currentPage with @@ -57,4 +59,4 @@ let root (currentPage:Page) (sc:ServiceContext) dispatch = ] ] -//let navRoot = lazyView3With (fun a b -> isCurrentPage (fst a) (fst b)) root \ No newline at end of file +let (navRoot: 'a -> ServiceContext -> Dispatch -> ReactElement) = lazyView3With (fun b c -> isCurrentPage (fst b) (fst c)) root \ No newline at end of file