Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor(photos):use-relative-sidebar-imports

Aswin Asok1c0de9aecb0f
diff --git a/web/apps/photos/src/components/sidebar/Sidebar.tsx b/web/apps/photos/src/components/sidebar/Sidebar.tsx
index 0a317fdc1a..06b76c642e 100644
--- a/web/apps/photos/src/components/sidebar/Sidebar.tsx
+++ b/web/apps/photos/src/components/sidebar/Sidebar.tsx
@@ -1,13 +1,4 @@
import { ShapeIcon } from "@/components/icons/ShapeIcon";
-import { DropdownInput } from "@/components/sidebar/DropdownInput";
-import { ReferralSettings } from "@/components/sidebar/ReferralSettings";
-import { WatchFolder } from "@/components/sidebar/WatchFolder";
-import { DeleteAccount } from "@/components/sidebar/account/DeleteAccount";
-import { SessionsSettings } from "@/components/sidebar/account/SessionsSettings";
-import { SubscriptionCard } from "@/components/sidebar/account/SubscriptionCard";
-import { TwoFactorSettings } from "@/components/sidebar/account/TwoFactorSettings";
-import { AppLockSettings } from "@/components/sidebar/preferences/AppLockSettings";
-import { MLSettings } from "@/components/sidebar/preferences/MLSettings";
import { downloadAppDialogAttributes } from "@/components/utils/download";
import exportService from "@/services/export";
import {
@@ -141,6 +132,15 @@ import React, {
type MouseEventHandler,
} from "react";
import { Trans } from "react-i18next";
+import { DropdownInput } from "./DropdownInput";
+import { ReferralSettings } from "./ReferralSettings";
+import { WatchFolder } from "./WatchFolder";
+import { DeleteAccount } from "./account/DeleteAccount";
+import { SessionsSettings } from "./account/SessionsSettings";
+import { SubscriptionCard } from "./account/SubscriptionCard";
+import { TwoFactorSettings } from "./account/TwoFactorSettings";
+import { AppLockSettings } from "./preferences/AppLockSettings";
+import { MLSettings } from "./preferences/MLSettings";
type SidebarProps = ModalVisibilityProps & {
normalCollectionSummaries: CollectionSummaries;
diff --git a/web/apps/photos/src/components/sidebar/account/DeleteAccount.tsx b/web/apps/photos/src/components/sidebar/account/DeleteAccount.tsx
index 594389c7bc..b6b58a5653 100644
--- a/web/apps/photos/src/components/sidebar/account/DeleteAccount.tsx
+++ b/web/apps/photos/src/components/sidebar/account/DeleteAccount.tsx
@@ -3,10 +3,6 @@ import {
EnteLockerIcon,
EntePhotosIcon,
} from "@/components/EnteAppIcon";
-import {
- DropdownInput,
- type DropdownOption,
-} from "@/components/sidebar/DropdownInput";
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import {
@@ -48,6 +44,7 @@ import { useFormik } from "formik";
import { t } from "i18next";
import React, { useState } from "react";
import { Trans } from "react-i18next";
+import { DropdownInput, type DropdownOption } from "../DropdownInput";
type DeleteAccountProps = ModalVisibilityProps & {
onAuthenticateUser: () => Promise<boolean>;