Skip to content

Commit d2d0929

Browse files
committed
make it inside the function instead of outside
1 parent d9b49b0 commit d2d0929

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

ci_template/cijob/components/navbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import reflex as rx
44

5-
from cijob.templates.template import ALL_PAGES
6-
75
from .. import styles
86

97

@@ -104,6 +102,8 @@ def navbar_footer() -> rx.Component:
104102

105103

106104
def menu_button() -> rx.Component:
105+
from cijob.templates.template import ALL_PAGES
106+
107107
# The ordered page routes.
108108
ordered_page_routes = [
109109
"/",

ci_template/cijob/components/sidebar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import reflex as rx
44

5-
from cijob.templates.template import ALL_PAGES
6-
75
from .. import styles
86

97

@@ -131,6 +129,8 @@ def sidebar() -> rx.Component:
131129
The sidebar component.
132130
133131
"""
132+
from cijob.templates.template import ALL_PAGES
133+
134134
# The ordered page routes.
135135
ordered_page_routes = [
136136
"/",

dashboard/dashboard/components/navbar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import reflex as rx
44

55
from dashboard import styles
6-
from dashboard.templates.template import ALL_PAGES
76

87

98
def menu_item_icon(icon: str) -> rx.Component:
@@ -105,6 +104,8 @@ def navbar_footer() -> rx.Component:
105104

106105

107106
def menu_button() -> rx.Component:
107+
from dashboard.templates.template import ALL_PAGES
108+
108109
# The ordered page routes.
109110
ordered_page_routes = [
110111
"/",

dashboard/dashboard/components/sidebar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import reflex as rx
44

5-
from dashboard.templates.template import ALL_PAGES
6-
75
from .. import styles
86

97

@@ -133,6 +131,8 @@ def sidebar() -> rx.Component:
133131
The sidebar component.
134132
135133
"""
134+
from dashboard.templates.template import ALL_PAGES
135+
136136
# The ordered page routes.
137137
ordered_page_routes = [
138138
"/",

0 commit comments

Comments
 (0)