Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathid14c7cf4c98d
diff --git a/web/apps/accounts/src/pages/passkeys/RenamePasskeyModal.tsx b/web/apps/accounts/src/pages/passkeys/RenamePasskeyModal.tsx
index ad4f4a2f55..9b47cd2d98 100644
--- a/web/apps/accounts/src/pages/passkeys/RenamePasskeyModal.tsx
+++ b/web/apps/accounts/src/pages/passkeys/RenamePasskeyModal.tsx
@@ -1,7 +1,7 @@
import DialogBoxV2 from "@ente/shared/components/DialogBoxV2";
import SingleInputForm from "@ente/shared/components/SingleInputForm";
+import { useMediaQuery } from "@mui/material";
import { t } from "i18next";
-import { AppContext } from "pages/_app";
import { useContext } from "react";
import { renamePasskey } from "services/passkeysService";
import { PasskeysContext } from ".";
@@ -12,9 +12,10 @@ interface IProps {
}
const RenamePasskeyModal = (props: IProps) => {
- const { isMobile } = useContext(AppContext);
const { selectedPasskey } = useContext(PasskeysContext);
+ const isMobile = useMediaQuery("(max-width: 428px)");
+
const onSubmit = async (inputValue: string) => {
if (!selectedPasskey) return;
try {
diff --git a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx
index bb738a9e9b..112791cb6e 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx
@@ -1,4 +1,4 @@
-import { Switch, SwitchProps, styled } from "@mui/material";
+import { Switch, styled, type SwitchProps } from "@mui/material";
const PublicShareSwitch = styled((props: SwitchProps) => (
<Switch
focusVisibleClassName=".Mui-focusVisible"
diff --git a/web/packages/shared/components/Collections/CollectionShare/publicShare/switch.tsx b/web/packages/shared/components/Collections/CollectionShare/publicShare/switch.tsx
index bb738a9e9b..112791cb6e 100644
--- a/web/packages/shared/components/Collections/CollectionShare/publicShare/switch.tsx
+++ b/web/packages/shared/components/Collections/CollectionShare/publicShare/switch.tsx
@@ -1,4 +1,4 @@
-import { Switch, SwitchProps, styled } from "@mui/material";
+import { Switch, styled, type SwitchProps } from "@mui/material";
const PublicShareSwitch = styled((props: SwitchProps) => (
<Switch
focusVisibleClassName=".Mui-focusVisible"