Module

FPO.Components.Navbar

Navbar component for the application. It contains links to different pages and a brand name.

This also serves as a guide for how to implement navigation in this application using the Navigate type class. Refer to the implementations of render and handleAction for more details on how to use the Navigate class.

#State

type State = FPOState (currentRoute :: Maybe Route, language :: String, user :: Maybe FullUserDto)

#Query

data Query a

Constructors

  • RequestReloadUser a

    Request a reload from outside - usually, the main routing component will call this to ensure the user data is up-to-date (e.g., after login).

#navbar

navbar :: forall output m. MonadAff m => MonadStore Action Store m => Navigate m => Component Query Unit output m

The navbar component that renders the navigation bar.

#openInNewTab

openInNewTab :: forall m. MonadEffect m => String -> m Unit

Modules