File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export default function HomeLayout() {
1212 < main className = "scroll-container h-full min-h-0 flex-1 rounded-lg" >
1313 < Outlet />
1414 </ main >
15- </ main >
1615
1716 {
1817 < aside className = "flex h-full min-w-62 max-w-80 flex-col overflow-hidden rounded-lg bg-white" >
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ function Home() {
2121 const [ inputValue , setInputValue ] = useState < string > ( "" ) ;
2222
2323 const { data : allPollTaskList } = useAllPollTaskList ( ) ;
24+ const hasNewsTickerTape = allPollTaskList ?. some ( ( item ) => item . agent_name === "NewsAgent" ) ;
2425
2526 const handleAgentClick = ( agentId : string ) => {
2627 navigate ( `/agent/${ agentId } ` ) ;
@@ -30,6 +31,11 @@ function Home() {
3031 < div className = "scroll-container flex min-h-svh min-w-[800px] flex-col gap-3 pb-4" >
3132 { allPollTaskList && allPollTaskList . length > 0 ? (
3233 < section className = "flex h-full flex-1 flex-col items-center justify-between gap-4 overflow-hidden" >
34+ { hasNewsTickerTape && (
35+ < div className = "mx-auto w-4/5 max-w-[800px] px-4" >
36+ < TradingViewTickerTape symbols = { INDEX_SYMBOLS } />
37+ </ div >
38+ ) }
3339 < div className = "scroll-container w-full" >
3440 < AgentTaskCards tasks = { allPollTaskList } />
3541 </ div >
You can’t perform that action at this time.
0 commit comments