core/ui: fix page title

This commit is contained in:
Caleb Doxsey 2024-02-08 09:41:12 -07:00
parent f9808a73ba
commit e7ea364ecb
9 changed files with 39 additions and 31 deletions

View file

@ -65,6 +65,6 @@ func (data UserInfoData) ToJSON() map[string]any {
// UserInfo returns a handler that renders the user info page.
func UserInfo(data UserInfoData) http.Handler {
return httputil.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
return ui.ServePage(w, r, "UserInfo", data.ToJSON())
return ui.ServePage(w, r, "UserInfo", "User Info Dashboard", data.ToJSON())
})
}