fix issue related to now importing div from pyweb.ui

This commit is contained in:
Fabio Pliger
2024-02-02 14:57:26 -06:00
parent 0a655f6b6a
commit 844e3767d1

View File

@@ -44,7 +44,7 @@ def create_component_details(component_label, component):
example = component["instance"]
details = example.__doc__ or f"Details missing for component {component_label}"
div = div(
return div(
[
# Title and description (description is picked from the class docstring)
h1(component_label),
@@ -72,8 +72,6 @@ def create_component_details(component_label, component):
],
style={"margin": "20px"},
)
return div
def add_component_section(component_label, component, parent_div):
"""Create a link to a component and add it to the left panel.