Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove watch folder state from albums context

Anand Baburajand7b9170ba7d5
diff --git a/web/apps/albums/src/pages/_app.tsx b/web/apps/albums/src/pages/_app.tsx
index 7ee61e2aa5..21ee7d1008 100644
--- a/web/apps/albums/src/pages/_app.tsx
+++ b/web/apps/albums/src/pages/_app.tsx
@@ -18,7 +18,7 @@ import { useLoadingBar } from "@/photos/components/utils/use-loading-bar";
import { PhotosAppContext } from "@/photos/types/context";
import { t } from "i18next";
import type { AppProps } from "next/app";
-import { useCallback, useMemo, useState } from "react";
+import { useCallback, useMemo } from "react";
import "photoswipe/dist/photoswipe.css";
import "../public-album/styles/global.css";
@@ -31,7 +31,6 @@ const App: React.FC<AlbumsAppProps> = ({ Component, pageProps }) => {
const { showMiniDialog, miniDialogProps } = useAttributedMiniDialog();
const { showNotification, notificationProps } = useNotification();
const { loadingBarRef, showLoadingBar, hideLoadingBar } = useLoadingBar();
- const [watchFolderView, setWatchFolderView] = useState(false);
const logout = useCallback(() => {
// Public albums does not maintain a logged-in app session.
}, []);
@@ -45,16 +44,8 @@ const App: React.FC<AlbumsAppProps> = ({ Component, pageProps }) => {
showLoadingBar,
hideLoadingBar,
showNotification,
- watchFolderView,
- setWatchFolderView,
}),
- [
- showLoadingBar,
- hideLoadingBar,
- showNotification,
- watchFolderView,
- setWatchFolderView,
- ],
+ [showLoadingBar, hideLoadingBar, showNotification],
);
const title = isI18nReady ? t("title_photos") : staticAppTitle;
diff --git a/web/apps/albums/src/photos/types/context.ts b/web/apps/albums/src/photos/types/context.ts
index a4bcc16152..34afb399b4 100644
--- a/web/apps/albums/src/photos/types/context.ts
+++ b/web/apps/albums/src/photos/types/context.ts
@@ -19,8 +19,6 @@ export interface PhotosAppContextT {
* using the provided {@link NotificationAttributes}.
*/
showNotification: (attributes: NotificationAttributes) => void;
- watchFolderView: boolean;
- setWatchFolderView: (isOpen: boolean) => void;
}
/**