Skip to content

Commit 3d73016

Browse files
Minor Sidebar Update
1 parent ae2d4e4 commit 3d73016

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

full_stack_python/contact/page.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
def contact_entry_list_item(contact: model.ContactEntryModel):
99
return rx.box(
1010
rx.heading(contact.first_name),
11-
rx.text(contact.message),
11+
rx.text("Message:", contact.message),
12+
rx.cond(contact.user_id,
13+
rx.text("User Id:", f"{contact.user_id}",),
14+
rx.fragment("")),
1215
padding='1em'
1316
)
1417

full_stack_python/ui/sidebar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ def sidebar_item(
130130
def sidebar_items() -> rx.Component:
131131
return rx.vstack(
132132
sidebar_item("Dashboard", "layout-dashboard", navigation.routes.HOME_ROUTE),
133-
sidebar_item("Blog", "square-library", navigation.routes.BLOG_POSTS_ROUTE),
134-
sidebar_item("Create post", "square-library", navigation.routes.BLOG_POST_ADD_ROUTE),
133+
sidebar_item("Blog", "newspaper", navigation.routes.BLOG_POSTS_ROUTE),
134+
sidebar_item("Create post", "notebook-pen", navigation.routes.BLOG_POST_ADD_ROUTE),
135+
sidebar_item("Contact", "mail", navigation.routes.CONTACT_US_ROUTE),
136+
sidebar_item("Contact History", "mailbox", navigation.routes.CONTACT_ENTRIES_ROUTE),
135137
spacing="1",
136138
width="100%",
137139
)

0 commit comments

Comments
 (0)