Ejemplo n.º 1
0
def mobile_feed_tab_content(value):
    """Callback to change between news and twitter feed
    """
    if value == "mobile-twitter-tab":
        return twitter_feed()
    else:
        return news_feed()
Ejemplo n.º 2
0
def feed_tab_content(tab_value, state):
    """Callback to change between news and twitter feed
    """
    # print(f"feed tab value {tab_value}")
    # print(f"feed tab state {state}")
    if tab_value == "twitter-tab":
        return twitter_feed(state)
    else:
        return news_feed(state)