fix: rename space dashboard page to space overview page
This commit is contained in:
parent
5e0637e210
commit
05aaca3600
2 changed files with 2 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ func (h *SpaceHandler) DashboardPage(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.Render(w, r, pages.SpaceDashboardPage(space, lists, tags))
|
ui.Render(w, r, pages.SpaceOverviewPage(space, lists, tags))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *SpaceHandler) ListsPage(w http.ResponseWriter, r *http.Request) {
|
func (h *SpaceHandler) ListsPage(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"git.juancwu.dev/juancwu/budgit/internal/ui/layouts"
|
"git.juancwu.dev/juancwu/budgit/internal/ui/layouts"
|
||||||
)
|
)
|
||||||
|
|
||||||
templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags []*model.Tag) {
|
templ SpaceOverviewPage(space *model.Space, lists []*model.ShoppingList, tags []*model.Tag) {
|
||||||
@layouts.Space("Overview", space) {
|
@layouts.Space("Overview", space) {
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
|
|
@ -91,4 +91,3 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue