mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
Lint
This commit is contained in:
parent
893b504e94
commit
2f1ecbc79d
@ -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,
|
||||
|
@ -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>
|
||||
|
@ -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",
|
||||
},
|
||||
};
|
||||
|
@ -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";
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user