Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deep dive countries switch from sac.segmented to sac.buttons #424

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/tab_deep_dive_countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
import plotly.express as px
import streamlit as st
from streamlit_antd_components import SegmentedItem, segmented
import streamlit_antd_components as sac

from app.layout_elements import (
display_and_edit_input_data,
Expand Down Expand Up @@ -37,11 +37,11 @@ def content_deep_dive_countries(
st.markdown(read_markdown_file("md/whatisthis_deep_dive_countries.md"))

st.write("Select which country to display:")
ddc = segmented(
ddc = sac.buttons(
items=[
SegmentedItem(label="Argentina"),
SegmentedItem(label="Morocco"),
SegmentedItem(label="South Africa"),
sac.ButtonsItem(label="Argentina"),
sac.ButtonsItem(label="Morocco"),
sac.ButtonsItem(label="South Africa"),
],
use_container_width=True,
)
Expand Down
Loading