From f0cc9e9b76e95e16ed2e199e02d73b884cf19280 Mon Sep 17 00:00:00 2001 From: Gedion Disassa Date: Tue, 17 Sep 2024 19:40:49 +0300 Subject: [PATCH] Refactor(pages): Breadcrumb parameter simplified --- pages/custom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/custom.py b/pages/custom.py index 9e8cc72..d5a6fb0 100644 --- a/pages/custom.py +++ b/pages/custom.py @@ -62,11 +62,11 @@ with tab4: code = """ st_undp.breadcrumb([ - {'label': 'Home', 'url': '/'}, - {'label': 'Custom components', 'url': '/custom'}, - {'label': 'Breadcrumb', 'url': None} + {'Home': '/'}, + {'Custom components': '/custom'}, + {'Breadcrumb': None} ]) - """ + """ eval(code.strip()) with st.expander("Show Code"): st.code(code)