Skip to content

Commit 0d46c8c

Browse files
authored
Merge pull request #3652 from verifywise-ai/develop
2 parents 0046462 + 147c878 commit 0d46c8c

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Clients/src/App.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import Alert from "./presentation/components/Alert";
2020
import useUsers from "./application/hooks/useUsers";
2121
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
2222
import { 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";
2524
import ChunkErrorBoundary from "./presentation/components/ChunkErrorBoundary";
2625
import { CommandPalette } from "./presentation/components/CommandPalette";
2726
import 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}

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "version": "1.7.0" }
1+
{ "version": "2.2" }

0 commit comments

Comments
 (0)