@@ -20,8 +20,7 @@ import Alert from "./presentation/components/Alert";
2020import useUsers from "./application/hooks/useUsers" ;
2121import { ReactQueryDevtools } from '@tanstack/react-query-devtools' ;
2222import { useLocation , useNavigate } from "react-router-dom" ;
23- import { DeploymentManager , clearChunkReloadFlag } from "./application/utils/deploymentHelpers" ;
24- import UpdateBanner from "./presentation/components/UpdateBanner" ;
23+ import { clearChunkReloadFlag } from "./application/utils/deploymentHelpers" ;
2524import ChunkErrorBoundary from "./presentation/components/ChunkErrorBoundary" ;
2625import { CommandPalette } from "./presentation/components/CommandPalette" ;
2726import CommandPaletteErrorBoundary from "./presentation/components/CommandPalette/ErrorBoundary" ;
@@ -106,7 +105,6 @@ function App() {
106105 const navigate = useNavigate ( ) ;
107106 const { token, userRoleName, organizationId, userId } = useAuth ( ) ;
108107 const [ alert , setAlert ] = useState < AlertProps | null > ( null ) ;
109- const [ showUpdateBanner , setShowUpdateBanner ] = useState ( false ) ;
110108 const { users, refreshUsers } = useUsers ( ) ;
111109 const { userPreferences} = useUserPreferences ( ) ;
112110 const commandPalette = useCommandPalette ( ) ;
@@ -148,14 +146,8 @@ function App() {
148146 // chunk errors can trigger a reload again
149147 clearChunkReloadFlag ( ) ;
150148
151- // Poll backend for version updates
152- DeploymentManager . startPolling ( ) ;
153- const unsubscribe = DeploymentManager . onUpdate ( ( ) => setShowUpdateBanner ( true ) ) ;
154-
155149 return ( ) => {
156150 setShowAlertCallback ( ( ) => { } ) ;
157- unsubscribe ( ) ;
158- DeploymentManager . stopPolling ( ) ;
159151 } ;
160152 } , [ ] ) ;
161153
@@ -263,7 +255,6 @@ function App() {
263255 < PluginLoader />
264256 < UserGuideSidebarProvider >
265257 < ConditionalThemeWrapper >
266- { showUpdateBanner && < UpdateBanner /> }
267258 { alert && (
268259 < Alert
269260 variant = { alert . variant }
0 commit comments