File tree Expand file tree Collapse file tree
src/frontend_react/src/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,21 +101,24 @@ const PlanPage: React.FC = () => {
101101 < CoralShellRow >
102102 < PlanPanelLeft onNewTaskButton = { handleNewTaskButton } />
103103 < Content >
104-
105- < ContentToolbar
106- panelTitle = { planData ?. plan ?. initial_goal || 'Plan Details' }
107- panelIcon = { < Sparkle20Filled /> }
108- > </ ContentToolbar >
109- < PlanChat
110- planData = { planData }
111- OnChatSubmit = { handleOnchatSubmit }
112- />
113- < TaskDetails
114- planData = { planData }
115- OnApproveStep = { handleApproveStep }
116- OnRejectStep = { handleRejectStep }
117- />
118-
104+ { loading && < Spinner /> }
105+ { ! loading && (
106+ < >
107+ < ContentToolbar
108+ panelTitle = { planData ?. plan ?. initial_goal || 'Plan Details' }
109+ panelIcon = { < Sparkle20Filled /> }
110+ > </ ContentToolbar >
111+ < PlanChat
112+ planData = { planData }
113+ OnChatSubmit = { handleOnchatSubmit }
114+ />
115+ < TaskDetails
116+ planData = { planData }
117+ OnApproveStep = { handleApproveStep }
118+ OnRejectStep = { handleRejectStep }
119+ />
120+ </ >
121+ ) }
119122 </ Content >
120123 </ CoralShellRow >
121124 </ CoralShellColumn >
You can’t perform that action at this time.
0 commit comments