@@ -5,11 +5,7 @@ import { Timeline } from '@ui/components/editor/panel/Timeline'
55import { ModeButton } from '@ui/components/editor/panel/ModeButton'
66import cn from 'classnames'
77import { post_message } from '../utils/post_message'
8- import {
9- Checkpoint ,
10- FrontendMessage ,
11- SetupProgress
12- } from '@/views/panel/types/messages'
8+ import { Checkpoint , FrontendMessage } from '@/views/panel/types/messages'
139import { Responses as UiResponses } from '@ui/components/editor/panel/Responses'
1410import { ResponseHistoryItem } from '@shared/types/response-history-item'
1511import { Separator } from '@ui/components/editor/panel/Separator'
@@ -47,7 +43,7 @@ type Props = {
4743 on_tasks_change : ( root : string , tasks : Task [ ] ) => void
4844 on_task_delete : ( root : string , timestamp : number ) => void
4945 on_task_forward : ( text : string ) => void
50- setup_progress ?: SetupProgress
46+ is_setup_complete : boolean
5147}
5248
5349export const Home : React . FC < Props > = ( props ) => {
@@ -98,10 +94,6 @@ export const Home: React.FC<Props> = (props) => {
9894 } as FrontendMessage )
9995 }
10096
101- const has_incomplete_setup = props . setup_progress
102- ? Object . values ( props . setup_progress ) . some ( ( v ) => ! v )
103- : false
104-
10597 return (
10698 < >
10799 < div className = { styles . header } >
@@ -114,7 +106,7 @@ export const Home: React.FC<Props> = (props) => {
114106 < SettingsButton
115107 on_click = { handle_settings_click }
116108 label = { t ( 'panel.header.settings' ) }
117- show_warning_icon = { has_incomplete_setup }
109+ show_warning_icon = { ! props . is_setup_complete }
118110 />
119111 </ div >
120112
0 commit comments