Skip to content

Commit

Permalink
Merge pull request #424 from agoenergy/joAschauer/issue418
Browse files Browse the repository at this point in the history
deep dive countries switch from sac.segmented to sac.buttons
  • Loading branch information
wingechr authored Jun 6, 2024
2 parents 511f0b4 + b862b0f commit e02161b
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit e02161b

Please sign in to comment.