π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Swap
Manav Rathi0d7c319903ad
diff --git a/web/apps/accounts/src/pages/passkeys/index.tsx b/web/apps/accounts/src/pages/passkeys/index.tsxindex 597c319527..629b824135 100644--- a/web/apps/accounts/src/pages/passkeys/index.tsx+++ b/web/apps/accounts/src/pages/passkeys/index.tsx@@ -10,6 +10,7 @@ import { SingleInputDialog } from "@/base/components/SingleInputDialog";import { Titlebar } from "@/base/components/Titlebar";import { errorDialogAttributes } from "@/base/components/utils/dialog";import { useModalVisibility } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import log from "@/base/log";import SingleInputForm from "@ente/shared/components/SingleInputForm";import { formatDateTimeFull } from "@ente/shared/time/format";@@ -28,10 +29,9 @@ import {renamePasskey,type Passkey,} from "services/passkey";-import { useAppContext } from "../../types/context";const Page: React.FC = () => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const [token, setToken] = useState<string | undefined>();const [passkeys, setPasskeys] = useState<Passkey[]>([]);@@ -252,7 +252,7 @@ const ManagePasskeyDrawer: React.FC<ManagePasskeyDrawerProps> = ({passkey,onUpdateOrDeletePasskey,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const { show: showRenameDialog, props: renameDialogVisibilityProps } =useModalVisibility();diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsxindex cdf2195439..1c654c9ae2 100644--- a/web/apps/auth/src/pages/auth.tsx+++ b/web/apps/auth/src/pages/auth.tsx@@ -8,6 +8,7 @@ import {OverflowMenu,OverflowMenuOption,} from "@/base/components/OverflowMenu";+import { useBaseContext } from "@/base/context";import { isHTTP401Error } from "@/base/http";import log from "@/base/log";import { masterKeyFromSessionIfLoggedIn } from "@/base/session-store";@@ -28,10 +29,9 @@ import { useRouter } from "next/router";import React, { useCallback, useEffect, useState } from "react";import { generateOTPs, type Code } from "services/code";import { getAuthCodes } from "services/remote";-import { useAppContext } from "types/context";const Page: React.FC = () => {- const { logout, showMiniDialog } = useAppContext();+ const { showMiniDialog, logout } = useBaseContext();const router = useRouter();const [codes, setCodes] = useState<Code[]>([]);@@ -131,7 +131,7 @@ const Page: React.FC = () => {export default Page;const AuthNavbar: React.FC = () => {- const { logout } = useAppContext();+ const { logout } = useBaseContext();return (<NavbarBasediff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxindex 86f3c61070..9b136ed181 100644--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -6,6 +6,7 @@ import {OverflowMenuOption,} from "@/base/components/OverflowMenu";import { useModalVisibility } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import type { Collection } from "@/media/collection";import { ItemVisibility } from "@/media/file-metadata";import {@@ -128,8 +129,8 @@ const CollectionOptions: React.FC<CollectionHeaderProps> = ({setFilesDownloadProgressAttributesCreator,isActiveCollectionDownloadInProgress,}) => {- const { showLoadingBar, hideLoadingBar, onGenericError, showMiniDialog } =- useAppContext();+ const { showMiniDialog } = useBaseContext();+ const { showLoadingBar, hideLoadingBar, onGenericError } = useAppContext();const { syncWithRemote } = useContext(GalleryContext);const overFlowMenuIconRef = useRef<SVGSVGElement>(null);diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 69c0518212..444bebb3d1 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -15,6 +15,7 @@ import {} from "@/base/components/RowButton";import { Titlebar } from "@/base/components/Titlebar";import { useModalVisibility } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import { sharedCryptoWorker } from "@/base/crypto";import log from "@/base/log";import { appendCollectionKeyToShareURL } from "@/gallery/services/share";@@ -27,7 +28,7 @@ import { COLLECTION_ROLE, type CollectionUser } from "@/media/collection";import { PublicLinkCreated } from "@/new/photos/components/share/PublicLinkCreated";import { avatarTextColor } from "@/new/photos/services/avatar";import type { CollectionSummary } from "@/new/photos/services/collection/ui";-import { AppContext, useAppContext } from "@/new/photos/types/context";+import { AppContext } from "@/new/photos/types/context";import { FlexWrapper } from "@ente/shared/components/Container";import SingleInputForm, {type SingleInputFormProps,@@ -1007,7 +1008,7 @@ const ManageParticipant: React.FC<ManageParticipantProps> = ({selectedParticipant,collectionUnshare,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const galleryContext = useContext(GalleryContext);const handleRootClose = () => {@@ -1710,7 +1711,7 @@ const ManageDownloadAccess: React.FC<ManageDownloadAccessProps> = ({updatePublicShareURLHelper,collection,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const handleFileDownloadSetting = () => {if (publicShareProp.enableDownload) {@@ -1758,7 +1759,7 @@ const ManageLinkPassword: React.FC<ManageLinkPasswordProps> = ({publicShareProp,updatePublicShareURLHelper,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const [changePasswordView, setChangePasswordView] = useState(false);const closeConfigurePassword = () => setChangePasswordView(false);diff --git a/web/apps/photos/src/components/Export.tsx b/web/apps/photos/src/components/Export.tsxindex a10e855fad..85623d5b93 100644--- a/web/apps/photos/src/components/Export.tsx+++ b/web/apps/photos/src/components/Export.tsx@@ -8,11 +8,11 @@ import {import { EllipsizedTypography } from "@/base/components/Typography";import type { ButtonishProps } from "@/base/components/mui";import type { ModalVisibilityProps } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import { ensureElectron } from "@/base/electron";import log from "@/base/log";import { EnteFile } from "@/media/file";import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";-import { useAppContext } from "@/new/photos/types/context";import { SpaceBetweenFlex } from "@ente/shared/components/Container";import { CustomError } from "@ente/shared/error";import FolderIcon from "@mui/icons-material/Folder";@@ -50,7 +50,7 @@ export const Export: React.FC<ExportProps> = ({onClose,collectionNameMap,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const [exportStage, setExportStage] = useState(ExportStage.INIT);const [exportFolder, setExportFolder] = useState("");const [continuousExport, setContinuousExport] = useState(false);diff --git a/web/apps/photos/src/components/FilesDownloadProgress.tsx b/web/apps/photos/src/components/FilesDownloadProgress.tsxindex 568741c8bc..fa015e482d 100644--- a/web/apps/photos/src/components/FilesDownloadProgress.tsx+++ b/web/apps/photos/src/components/FilesDownloadProgress.tsx@@ -1,6 +1,6 @@+import { useBaseContext } from "@/base/context";import { Notification } from "@/new/photos/components/Notification";import { aboveFileViewerContentZ } from "@/new/photos/components/utils/z-index";-import { useAppContext } from "@/new/photos/types/context";import { t } from "i18next";import { GalleryContext } from "pages/gallery";import { useContext } from "react";@@ -57,7 +57,7 @@ export const FilesDownloadProgress: React.FC<FilesDownloadProgressProps> = ({attributesList,setAttributesList,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const galleryContext = useContext(GalleryContext);if (!attributesList) {diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsxindex bfd0d6e8e0..4214e0172d 100644--- a/web/apps/photos/src/components/Sidebar.tsx+++ b/web/apps/photos/src/components/Sidebar.tsx@@ -20,6 +20,7 @@ import {} from "@/base/components/mui/SidebarDrawer";import { useIsSmallWidth } from "@/base/components/utils/hooks";import { useModalVisibility } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import { isDevBuild } from "@/base/env";import {getLocaleInUse,@@ -354,7 +355,7 @@ const SubscriptionStatus: React.FC<SubscriptionStatusProps> = ({};function MemberSubscriptionManage({ open, userDetails, onClose }) {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const fullScreen = useIsSmallWidth();const confirmLeaveFamily = () =>@@ -648,7 +649,7 @@ const Account: React.FC<NestedSidebarDrawerVisibilityProps> = ({onClose,onRootClose,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const router = useRouter();@@ -908,7 +909,7 @@ const MapSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({onClose,onRootClose,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const { mapEnabled } = useSettingsSnapshot();@@ -1033,7 +1034,7 @@ const Help: React.FC<NestedSidebarDrawerVisibilityProps> = ({onClose,onRootClose,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const handleRootClose = () => {onClose();diff --git a/web/apps/photos/src/components/Upload/UploadProgress.tsx b/web/apps/photos/src/components/Upload/UploadProgress.tsxindex b96d00cb34..592ec8fce5 100644--- a/web/apps/photos/src/components/Upload/UploadProgress.tsx+++ b/web/apps/photos/src/components/Upload/UploadProgress.tsx@@ -1,9 +1,9 @@import { FilledIconButton } from "@/base/components/mui";+import { useBaseContext } from "@/base/context";import {UPLOAD_RESULT,type UploadPhase,} from "@/new/photos/services/upload/types";-import { useAppContext } from "@/new/photos/types/context";import { SpaceBetweenFlex } from "@ente/shared/components/Container";import CloseIcon from "@mui/icons-material/Close";import ExpandMoreIcon from "@mui/icons-material/ExpandMore";@@ -67,7 +67,8 @@ export const UploadProgress: React.FC<UploadProgressProps> = ({finishedUploads,cancelUploads,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();+const [expanded, setExpanded] = useState(false);useEffect(() => {diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsxindex 67498b49d1..ef65ef2717 100644--- a/web/apps/photos/src/components/Upload/Uploader.tsx+++ b/web/apps/photos/src/components/Upload/Uploader.tsx@@ -1,5 +1,6 @@import { isDesktop } from "@/base/app";import { useModalVisibility } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import { basename } from "@/base/file-name";import log from "@/base/log";import type { CollectionMapping, Electron, ZipItem } from "@/base/types/ipc";@@ -108,12 +109,9 @@ export default function Uploader({showSessionExpiredMessage,...props}: Props) {- const {- showMiniDialog,- showNotification,- onGenericError,- watchFolderView,- } = useAppContext();+ const { showMiniDialog } = useBaseContext();+ const { showNotification, onGenericError, watchFolderView } =+ useAppContext();const galleryContext = useContext(GalleryContext);const publicCollectionGalleryContext = useContext(PublicCollectionGalleryContext,diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsxindex 985cf61224..bc916eca9d 100644--- a/web/apps/photos/src/components/WatchFolder.tsx+++ b/web/apps/photos/src/components/WatchFolder.tsx@@ -9,12 +9,12 @@ import {useModalVisibility,type ModalVisibilityProps,} from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import { ensureElectron } from "@/base/electron";import { basename, dirname } from "@/base/file-name";import type { CollectionMapping, FolderWatch } from "@/base/types/ipc";import { CollectionMappingChoice } from "@/new/photos/components/CollectionMappingChoice";import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";-import { useAppContext } from "@/new/photos/types/context";import AddIcon from "@mui/icons-material/Add";import CheckIcon from "@mui/icons-material/Check";import DoNotDisturbOutlinedIcon from "@mui/icons-material/DoNotDisturbOutlined";@@ -205,7 +205,7 @@ interface WatchEntryProps {}const WatchEntry: React.FC<WatchEntryProps> = ({ watch, removeWatch }) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const confirmStopWatching = () => {showMiniDialog({diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsxindex 35f97b7387..fcf1d5c452 100644--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx@@ -1,4 +1,5 @@import { SpacedRow } from "@/base/components/containers";+import { useBaseContext } from "@/base/context";import type { Collection } from "@/media/collection";import type { CollectionSelectorAttributes } from "@/new/photos/components/CollectionSelector";import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";@@ -7,7 +8,6 @@ import {ARCHIVE_SECTION,TRASH_SECTION,} from "@/new/photos/services/collection";-import { useAppContext } from "@/new/photos/types/context";import ClockIcon from "@mui/icons-material/AccessTime";import AddIcon from "@mui/icons-material/Add";import ArchiveIcon from "@mui/icons-material/ArchiveOutlined";@@ -71,7 +71,7 @@ const SelectedFileOptions = ({isInSearchMode,isInHiddenSection,}: Props) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const peopleMode = barMode == "people";diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 4aaf841a5f..aec02437fe 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -9,6 +9,7 @@ import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { errorDialogAttributes } from "@/base/components/utils/dialog";import { useIsSmallWidth } from "@/base/components/utils/hooks";import { useModalVisibility } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import log from "@/base/log";import { FullScreenDropZone } from "@/gallery/components/FullScreenDropZone";import { useFileInput } from "@/gallery/components/utils/use-file-input";@@ -177,14 +178,9 @@ export const GalleryContext = createContext<GalleryContextType>(* Photo List v*/const Page: React.FC = () => {- const {- showLoadingBar,- hideLoadingBar,- showMiniDialog,- onGenericError,- watchFolderView,- logout,- } = useAppContext();+ const { showMiniDialog, logout } = useBaseContext();+ const { showLoadingBar, hideLoadingBar, onGenericError, watchFolderView } =+ useAppContext();const isOffline = useIsOffline();const [state, dispatch] = useGalleryReducer();diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsxindex 695fdec9d6..e223425a18 100644--- a/web/apps/photos/src/pages/index.tsx+++ b/web/apps/photos/src/pages/index.tsx@@ -4,10 +4,10 @@ import { CenteredFill, CenteredRow } from "@/base/components/containers";import { EnteLogo } from "@/base/components/EnteLogo";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";+import { useBaseContext } from "@/base/context";import log from "@/base/log";import { albumsAppOrigin, customAPIHost } from "@/base/origins";import { DevSettings } from "@/new/photos/components/DevSettings";-import { useAppContext } from "@/new/photos/types/context";import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";import { saveKeyInSessionStore } from "@ente/shared/crypto/helpers";import localForage from "@ente/shared/storage/localForage";@@ -21,7 +21,7 @@ import React, { useCallback, useEffect, useRef, useState } from "react";import { Trans } from "react-i18next";const Page: React.FC = () => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const [loading, setLoading] = useState(true);const [showLogin, setShowLogin] = useState(true);diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex 07677d11ab..c843a1af82 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -19,6 +19,7 @@ import {useIsSmallWidth,useIsTouchscreen,} from "@/base/components/utils/hooks";+import { useBaseContext } from "@/base/context";import { isHTTP401Error, PublicAlbumsCredentials } from "@/base/http";import log from "@/base/log";import { FullScreenDropZone } from "@/gallery/components/FullScreenDropZone";@@ -93,7 +94,8 @@ export default function PublicCollectionGallery() {const [publicFiles, setPublicFiles] = useState<EnteFile[]>(null);const [publicCollection, setPublicCollection] = useState<Collection>(null);const [errorMessage, setErrorMessage] = useState<string>(null);- const { showLoadingBar, hideLoadingBar, showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();+ const { showLoadingBar, hideLoadingBar } = useAppContext();const [loading, setLoading] = useState(true);const router = useRouter();const [isPasswordProtected, setIsPasswordProtected] =diff --git a/web/packages/new/photos/components/PlanSelector.tsx b/web/packages/new/photos/components/PlanSelector.tsxindex de5224e883..acd1d548a9 100644--- a/web/packages/new/photos/components/PlanSelector.tsx+++ b/web/packages/new/photos/components/PlanSelector.tsx@@ -6,6 +6,7 @@ import {genericRetriableErrorDialogAttributes,} from "@/base/components/utils/dialog";import type { ModalVisibilityProps } from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import log from "@/base/log";import { useUserDetailsSnapshot } from "@/new/photos/components/utils/use-snapshot";import { useWrapAsyncOperation } from "@/new/photos/components/utils/use-wrap-async";@@ -111,7 +112,7 @@ const PlanSelectorCard: React.FC<PlanSelectorCardProps> = ({onClose,setLoading,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const userDetails = useUserDetailsSnapshot();@@ -717,7 +718,7 @@ const StripeSubscriptionOptions: React.FC<StripeSubscriptionOptionsProps> = ({subscription,hasAddOnBonus,}) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const confirmReactivation = () =>showMiniDialog({diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsxindex 40e24cd74f..7ffae9517e 100644--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx@@ -13,6 +13,7 @@ import {useModalVisibility,type ModalVisibilityProps,} from "@/base/components/utils/modal";+import { useBaseContext } from "@/base/context";import log from "@/base/log";import {addCGroup,@@ -110,7 +111,7 @@ interface CGroupPersonHeaderProps {const CGroupPersonHeader: React.FC<CGroupPersonHeaderProps> = ({ person }) => {const cgroup = person.cgroup;- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const { show: showNameInput, props: nameInputVisibilityProps } =useModalVisibility();@@ -225,7 +226,7 @@ const ClusterPersonHeader: React.FC<ClusterPersonHeaderProps> = ({}) => {const cluster = person.cluster;- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const { show: showAddPerson, props: addPersonVisibilityProps } =useModalVisibility();@@ -545,7 +546,8 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({onClose,person,}) => {- const { showMiniDialog, onGenericError } = useAppContext();+ const { showMiniDialog } = useBaseContext();+ const { onGenericError } = useAppContext();const [state, dispatch] = useReducer(suggestionsDialogReducer,diff --git a/web/packages/new/photos/components/sidebar/MLSettings.tsx b/web/packages/new/photos/components/sidebar/MLSettings.tsxindex fb60a63b33..aadea1c373 100644--- a/web/packages/new/photos/components/sidebar/MLSettings.tsx+++ b/web/packages/new/photos/components/sidebar/MLSettings.tsx@@ -6,6 +6,7 @@ import {SidebarDrawerTitlebar,type NestedSidebarDrawerVisibilityProps,} from "@/base/components/mui/SidebarDrawer";+import { useBaseContext } from "@/base/context";import { disableML, enableML, type MLStatus } from "@/new/photos/services/ml";import {Box,@@ -22,7 +23,6 @@ import {import { t } from "i18next";import React, { useEffect, useState } from "react";import { Trans } from "react-i18next";-import { useAppContext } from "../../types/context";import { openURL } from "../../utils/web";import { useMLStatusSnapshot } from "../utils/use-snapshot";import { useWrapAsyncOperation } from "../utils/use-wrap-async";@@ -240,7 +240,7 @@ interface ManageMLProps {}const ManageML: React.FC<ManageMLProps> = ({ mlStatus, onDisableML }) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const { phase, nSyncedFiles, nTotalFiles } = mlStatus;diff --git a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsxindex 5deabff34d..a1958d5460 100644--- a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx+++ b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx@@ -10,8 +10,8 @@ import {SidebarDrawerTitlebar,type NestedSidebarDrawerVisibilityProps,} from "@/base/components/mui/SidebarDrawer";+import { useBaseContext } from "@/base/context";import { disable2FA, get2FAStatus } from "@/new/photos/services/user";-import { useAppContext } from "@/new/photos/types/context";import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";import { LS_KEYS, getData, setLSUser } from "@ente/shared/storage/localStorage";import LockIcon from "@mui/icons-material/Lock";@@ -106,7 +106,7 @@ const SetupDrawerContents: React.FC<ContentsProps> = ({ onRootClose }) => {};const ManageDrawerContents: React.FC<ContentsProps> = ({ onRootClose }) => {- const { showMiniDialog } = useAppContext();+ const { showMiniDialog } = useBaseContext();const confirmDisable = () =>showMiniDialog({