refactor: Replace st.switch_page() with session state navigation
This commit is contained in:
parent
83e2cde08a
commit
c1445fc5e3
@ -716,8 +716,8 @@ def strategy_guide_page():
|
|||||||
col1, col2 = st.columns(2)
|
col1, col2 = st.columns(2)
|
||||||
with col1:
|
with col1:
|
||||||
if st.button("Go to SunnyBands Scanner"):
|
if st.button("Go to SunnyBands Scanner"):
|
||||||
st.switch_page("src/streamlit_app.py") # This will refresh the page
|
st.session_state.page = "Technical Scanner"
|
||||||
st.session_state.page = "Technical Scanner" # Set the page before refresh
|
st.rerun()
|
||||||
|
|
||||||
# Morning Trading Section
|
# Morning Trading Section
|
||||||
with st.expander("2. Trading Strategy (6:30-7:30 AM PST)"):
|
with st.expander("2. Trading Strategy (6:30-7:30 AM PST)"):
|
||||||
@ -792,8 +792,8 @@ def strategy_guide_page():
|
|||||||
col1, col2 = st.columns(2)
|
col1, col2 = st.columns(2)
|
||||||
with col1:
|
with col1:
|
||||||
if st.button("Go to Trading Journal"):
|
if st.button("Go to Trading Journal"):
|
||||||
st.switch_page("src/streamlit_app.py") # This will refresh the page
|
st.session_state.page = "Trading Journal"
|
||||||
st.session_state.page = "Trading Journal" # Set the page before refresh
|
st.rerun()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
st.set_page_config(page_title="Trading System", layout="wide")
|
st.set_page_config(page_title="Trading System", layout="wide")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user