NoRedInk/noredink-ui/7.3.0

NOTE: the latest version is 35.9.3

Nri.Ui.Page.V3

A styled NRI issue page!

type alias DefaultPage msg =
{ link : msg
, recoveryText : RecoveryText
}

The default page information is for the button which will direct the user back to the main page of the SPA. Specify it's name and the message which will navigate to the page.

broken : DefaultPage msg -> Html msg

For HTTP errors and other broken states.

blocked : String -> Html msg

For HTTP errors and other broken states, where link goes to "/".

notFound : DefaultPage msg -> Html msg

For the not found page.

noPermission : DefaultPage msg -> Html msg

For pages the user does not have access to.

= ReturnTo String
| Reload
| Custom String

ReturnTo just needs the name of the page the user will be returned to. Reload displays default text to reload the current page. Custom is to add flexibility to the button.