Skip to content

Commit 4c86acd

Browse files
committed
Enable hosting banner by default and add to navbar
1 parent b61f631 commit 4c86acd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,10 @@ def new_component_section() -> rx.Component:
584584

585585
@rx.memo
586586
def navbar() -> rx.Component:
587+
from pcweb.components.hosting_banner import hosting_banner
588+
587589
return rx.box(
590+
hosting_banner(),
588591
rx.el.header(
589592
new_component_section(),
590593
class_name="flex flex-row items-center gap-12 bg-slate-1 shadow-[inset_0_-0.5px_0_0_var(--c-slate-3)] px-4 lg:px-6 w-screen h-[48px] lg:h-[65px]",

pcweb/components/hosting_banner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def glow() -> rx.Component:
1717

1818

1919
class HostingBannerState(rx.State):
20-
show_banner: rx.Field[bool] = rx.field(False)
20+
show_banner: rx.Field[bool] = rx.field(True)
2121
force_hide_banner: rx.Field[bool] = rx.field(False)
2222

2323
@rx.event

0 commit comments

Comments
 (0)