fix: change "Dashboard" to "Overview" in space overview page

This commit is contained in:
juancwu 2026-02-06 22:02:23 +00:00
commit 4f1a5747db

View file

@ -10,11 +10,11 @@ import (
)
templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags []*model.Tag) {
@layouts.Space("Dashboard", space) {
@layouts.Space("Overview", space) {
<div class="space-y-4">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-bold">Welcome to { space.Name }!</h1>
@dialog.Dialog(dialog.Props{ ID: "invite-member-dialog" }) {
@dialog.Dialog(dialog.Props{ID: "invite-member-dialog"}) {
@dialog.Trigger() {
@button.Button() {
Invite Member
@ -22,7 +22,9 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
}
@dialog.Content() {
@dialog.Header() {
@dialog.Title() { Invite Member }
@dialog.Title() {
Invite Member
}
@dialog.Description() {
Send an invitation email to add a new member to this space.
}
@ -36,14 +38,14 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
<div>
<label for="email" class="label">Email Address</label>
@input.Input(input.Props{
Name: "email",
ID: "email",
Type: "email",
Name: "email",
ID: "email",
Type: "email",
Attributes: templ.Attributes{"required": "true"},
})
</div>
<div class="flex justify-end">
@button.Button(button.Props{ Type: button.TypeSubmit }) {
@button.Button(button.Props{Type: button.TypeSubmit}) {
Send Invitation
}
</div>
@ -51,7 +53,6 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
}
}
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
// Shopping Lists section
<div class="border rounded-lg p-4">
@ -83,3 +84,4 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
</div>
}
}