Skip to content

armgit / ente

Public Imported from GitHub
0

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

Lint

Manav Rathi2f1ecbc79d2f
diff --git a/web/apps/photos/src/components/Sidebar/MapSetting.tsx b/web/apps/photos/src/components/Sidebar/MapSetting.tsx
index 74bcc0257c..6fe1851eb1 100644
--- a/web/apps/photos/src/components/Sidebar/MapSetting.tsx
+++ b/web/apps/photos/src/components/Sidebar/MapSetting.tsx
@@ -1,6 +1,7 @@
import { EnteDrawer } from "@/base/components/EnteDrawer";
import { MenuItemGroup } from "@/base/components/Menu";
import { Titlebar } from "@/base/components/Titlebar";
+import type { NestedDrawerVisibilityProps } from "@/base/components/utils/modal";
import log from "@/base/log";
import { AppContext } from "@/new/photos/types/context";
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
@@ -16,7 +17,6 @@ import { t } from "i18next";
import React, { useContext, useEffect, useState } from "react";
import { Trans } from "react-i18next";
import { getMapEnabledStatus } from "services/userService";
-import type { NestedDrawerVisibilityProps } from "@/base/components/utils/modal";
export const MapSettings: React.FC<NestedDrawerVisibilityProps> = ({
open,
diff --git a/web/apps/photos/src/components/TwoFactor/Modal/index.tsx b/web/apps/photos/src/components/TwoFactor/Modal/index.tsx
index 528502bf09..bebd1810d4 100644
--- a/web/apps/photos/src/components/TwoFactor/Modal/index.tsx
+++ b/web/apps/photos/src/components/TwoFactor/Modal/index.tsx
@@ -1,13 +1,13 @@
+import type { ModalVisibilityProps } from "@/base/components/utils/modal";
+import DialogTitleWithCloseButton from "@ente/shared/components/DialogBox/TitleWithCloseButton";
import { LS_KEYS, getData, setLSUser } from "@ente/shared/storage/localStorage";
+import { Dialog, DialogContent, styled } from "@mui/material";
import { t } from "i18next";
import { useEffect, useState } from "react";
import { getTwoFactorStatus } from "services/userService";
import { SetLoading } from "types/gallery";
-import DialogTitleWithCloseButton from "@ente/shared/components/DialogBox/TitleWithCloseButton";
-import { Dialog, DialogContent, styled } from "@mui/material";
import TwoFactorModalManageSection from "./Manage";
import TwoFactorModalSetupSection from "./Setup";
-import type { ModalVisibilityProps } from "@/base/components/utils/modal";
const TwoFactorDialog = styled(Dialog)(({ theme }) => ({
"& .MuiDialogContent-root": {
@@ -18,7 +18,7 @@ const TwoFactorDialog = styled(Dialog)(({ theme }) => ({
type Props = ModalVisibilityProps & {
setLoading: SetLoading;
closeSidebar: () => void;
-}
+};
function TwoFactorModal(props: Props) {
const [isTwoFactorEnabled, setTwoFactorStatus] = useState(false);
@@ -50,7 +50,11 @@ function TwoFactorModal(props: Props) {
};
return (
- <TwoFactorDialog maxWidth="xs" open={props.open} onClose={props.onClose}>
+ <TwoFactorDialog
+ maxWidth="xs"
+ open={props.open}
+ onClose={props.onClose}
+ >
<DialogTitleWithCloseButton onClose={props.onClose}>
{t("TWO_FACTOR_AUTHENTICATION")}
</DialogTitleWithCloseButton>
diff --git a/web/packages/build-config/eslintrc-react.js b/web/packages/build-config/eslintrc-react.js
index df031cf943..a275ad9f74 100644
--- a/web/packages/build-config/eslintrc-react.js
+++ b/web/packages/build-config/eslintrc-react.js
@@ -24,6 +24,6 @@ module.exports = {
"react/react-in-jsx-scope": "off",
/* Without React in scope, this rule starts causing false positives (We
don't use prop types in our own code anyways). */
- "react/prop-types": "off"
+ "react/prop-types": "off",
},
};
diff --git a/web/packages/new/photos/components/CollectionMappingChoiceDialog.tsx b/web/packages/new/photos/components/CollectionMappingChoiceDialog.tsx
index e2fe4e78ac..eb52dd7aab 100644
--- a/web/packages/new/photos/components/CollectionMappingChoiceDialog.tsx
+++ b/web/packages/new/photos/components/CollectionMappingChoiceDialog.tsx
@@ -1,5 +1,5 @@
-import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
+import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import type { CollectionMapping } from "@/base/types/ipc";
import FolderIcon from "@mui/icons-material/Folder";
import FolderCopyIcon from "@mui/icons-material/FolderCopy";
diff --git a/web/packages/new/photos/components/SingleInputForm.tsx b/web/packages/new/photos/components/SingleInputForm.tsx
index 78ea8193eb..630fe5f9fc 100644
--- a/web/packages/new/photos/components/SingleInputForm.tsx
+++ b/web/packages/new/photos/components/SingleInputForm.tsx
@@ -1,6 +1,6 @@
-import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import { LoadingButton } from "@/base/components/mui/LoadingButton";
+import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import log from "@/base/log";
import {
Box,