Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(auth):pinned-pin-light-mode-fixed

Aswin Asokd261aeaf504a
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index 97011919f8..f2db6c0c82 100644
--- a/web/apps/auth/src/pages/auth.tsx
+++ b/web/apps/auth/src/pages/auth.tsx
@@ -10,6 +10,7 @@ import {
Typography,
useTheme,
} from "@mui/material";
+import { useColorScheme } from "@mui/material/styles";
import { sessionExpiredDialogAttributes } from "ente-accounts/components/utils/dialog";
import { stashRedirect } from "ente-accounts/services/redirect";
import { EnteLogo } from "ente-base/components/EnteLogo";
@@ -256,6 +257,9 @@ const OTPDisplay: React.FC<OTPDisplayProps> = ({
otp,
nextOTP,
}) => {
+ const { systemMode } = useColorScheme();
+ const isDarkMode = systemMode === "dark";
+
return (
<Box
sx={(theme) => ({
@@ -277,7 +281,7 @@ const OTPDisplay: React.FC<OTPDisplayProps> = ({
right: "-41px",
width: "107px",
height: "26px",
- backgroundColor: "#390C4F",
+ bgcolor: isDarkMode ? "#390C4F" : "#f6f6f6",
transform: "rotate(43deg)",
zIndex: 0,
}}
diff --git a/web/apps/share/src/components/file-share/FileShareView.tsx b/web/apps/share/src/components/file-share/FileShareView.tsx
index 3610bdb538..009d4bee8b 100644
--- a/web/apps/share/src/components/file-share/FileShareView.tsx
+++ b/web/apps/share/src/components/file-share/FileShareView.tsx
@@ -9,8 +9,8 @@ import { getLockerFileIcon } from "../../utils/file-type";
import { LockerTypeDisplay } from "./LockerTypeDisplay";
export const FileShareView: React.FC = () => {
- const { mode } = useColorScheme();
- const isDarkMode = mode === "dark";
+ const { systemMode } = useColorScheme();
+ const isDarkMode = systemMode === "dark";
const {
loading,