π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
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.tsxindex 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.tsindex 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;}/**