π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix lint?
mngshme81b6acbdd66
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsxindex b6632e7cd9..44f4c985e2 100644--- a/web/apps/photos/src/components/Sidebar/index.tsx+++ b/web/apps/photos/src/components/Sidebar/index.tsx@@ -47,6 +47,7 @@ import {} from "@ente/shared/components/Container";import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";+import { getToken } from "@ente/shared/storage/localStorage/helpers";import { THEME_COLOR } from "@ente/shared/themes/constants";import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";import CategoryIcon from "@mui/icons-material/Category";@@ -89,7 +90,6 @@ import exportService from "services/export";import { testUpload } from "../../../tests/upload.test";import { Preferences } from "./Preferences";import { SubscriptionCard } from "./SubscriptionCard";-import { getToken } from "@ente/shared/storage/localStorage/helpers";interface Iprops {collectionSummaries: CollectionSummaries;@@ -513,26 +513,25 @@ const UtilitySection: React.FC<UtilitySectionProps> = ({ closeSidebar }) => {const redirectToAccountsPage = async () => {closeSidebar();await openAccountsManagePasskeysPage();- };-- const redirectToDashboard = () => {- const token = getToken()- console.log(token)- if (!token) {- console.error("Invalid Token")- return;- }+ };- // To be replaced with the Staff app origin in future.- const baseURL = `http://localhost:5173`- window.location.href= `${baseURL}/?token=${token}`;- }+ const redirectToDashboard = () => {+ const token = getToken();+ if (!token) {+ console.error("Invalid Token");+ return;+ }++ // To be replaced with the Staff app origin in future.+ const baseURL = `http://localhost:5173`;+ window.location.href = `${baseURL}/?token=${token}`;+ };- const handleDeduplicate = () => router.push("/duplicates");+ const handleDeduplicate = () => router.push("/duplicates");- const toggleTheme = () =>- setThemeColor(- themeColor === THEME_COLOR.DARK+ const toggleTheme = () =>+ setThemeColor(+ themeColor === THEME_COLOR.DARK? THEME_COLOR.LIGHT: THEME_COLOR.DARK,);