@@ -5,7 +5,6 @@ import { Inspector } from "../components/Inspector";
55import { LayersPanel } from "../components/LayersPanel" ;
66import { Toolbar } from "../components/Toolbar" ;
77import { TraceCanvas } from "../components/TraceCanvas" ;
8- import { useUpdater } from "../hooks/useUpdater" ;
98import { generateComponentSource } from "../lib/component-generator" ;
109import { useEditorStore } from "../store/editor-store" ;
1110import { useProjectStore } from "../store/project-store" ;
@@ -19,7 +18,6 @@ export function EditorScreen({ project, component }: EditorScreenProps) {
1918 const [ editorTab , setEditorTab ] = useState < "canvas" | "code" > ( "canvas" ) ;
2019 const [ rightTab , setRightTab ] = useState < "properties" | "layers" > ( "properties" ) ;
2120 const [ showResizeDialog , setShowResizeDialog ] = useState ( false ) ;
22- const { state : updateState , install, relaunchApp } = useUpdater ( ) ;
2321 const { goToProject } = useProjectStore ( ) ;
2422
2523 const {
@@ -229,25 +227,6 @@ export function EditorScreen({ project, component }: EditorScreenProps) {
229227 ) }
230228 </ header >
231229
232- { updateState . status === "available" && (
233- < div className = "update-banner" >
234- < span > lines { updateState . version } is available</ span >
235- < button className = "update-banner-btn" onClick = { install } type = "button" > Install update</ button >
236- </ div >
237- ) }
238- { updateState . status === "downloading" && (
239- < div className = "update-banner" >
240- < span > Downloading… { updateState . progress } %</ span >
241- < div className = "update-progress-bar" > < div className = "update-progress-fill" style = { { width : `${ updateState . progress } %` } } /> </ div >
242- </ div >
243- ) }
244- { updateState . status === "ready" && (
245- < div className = "update-banner update-banner--ready" >
246- < span > Update ready</ span >
247- < button className = "update-banner-btn" onClick = { relaunchApp } type = "button" > Relaunch</ button >
248- </ div >
249- ) }
250-
251230 < Toolbar activeTool = { activeTool } onSelectTool = { setActiveTool } />
252231
253232 < main className = "canvas-area" >
0 commit comments