MCPcopy Index your code
hub / github.com/codingforentrepreneurs/full-stack-python / my_logout_page

Function my_logout_page

full_stack_python/auth/pages.py:41–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def my_logout_page() -> rx.Component:
42 # Welcome Page (Index)
43 my_child = rx.vstack(
44 rx.heading("Are you sure you want logout?", size="7"),
45 rx.link(
46 rx.button("No", color_scheme="gray"),
47 href=navigation.routes.HOME_ROUTE
48 ),
49 rx.button("Yes, please logout", on_click=SessionState.perform_logout),
50 spacing="5",
51 justify="center",
52 align="center",
53 # text_align="center",
54 min_height="85vh",
55 id='my-child'
56 )
57 return base_page(my_child)
58

Callers

nothing calls this directly

Calls 1

base_pageFunction · 0.85

Tested by

no test coverage detected