File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 8
8
def contact_entry_list_item (contact : model .ContactEntryModel ):
9
9
return rx .box (
10
10
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 ("" )),
12
15
padding = '1em'
13
16
)
14
17
Original file line number Diff line number Diff line change @@ -130,8 +130,10 @@ def sidebar_item(
130
130
def sidebar_items () -> rx .Component :
131
131
return rx .vstack (
132
132
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 ),
135
137
spacing = "1" ,
136
138
width = "100%" ,
137
139
)
You can’t perform that action at this time.
0 commit comments