diff --git a/frontend/src/components/ui/DrawerSection.tsx b/frontend/src/components/drawer/DrawerSection.tsx similarity index 100% rename from frontend/src/components/ui/DrawerSection.tsx rename to frontend/src/components/drawer/DrawerSection.tsx diff --git a/frontend/src/components/ui/LetterItem.tsx b/frontend/src/components/drawer/LetterItem.tsx similarity index 100% rename from frontend/src/components/ui/LetterItem.tsx rename to frontend/src/components/drawer/LetterItem.tsx diff --git a/frontend/src/components/ui/PasskeyModal.tsx b/frontend/src/components/drawer/PasskeyModal.tsx similarity index 100% rename from frontend/src/components/ui/PasskeyModal.tsx rename to frontend/src/components/drawer/PasskeyModal.tsx diff --git a/frontend/src/components/ui/ComposeCanvas.tsx b/frontend/src/components/editor/ComposeCanvas.tsx similarity index 100% rename from frontend/src/components/ui/ComposeCanvas.tsx rename to frontend/src/components/editor/ComposeCanvas.tsx diff --git a/frontend/src/components/ui/EnvelopeReveal.tsx b/frontend/src/components/reader/EnvelopeReveal.tsx similarity index 100% rename from frontend/src/components/ui/EnvelopeReveal.tsx rename to frontend/src/components/reader/EnvelopeReveal.tsx diff --git a/frontend/src/pages/Drawer.tsx b/frontend/src/pages/Drawer.tsx index 2efc859..f965478 100644 --- a/frontend/src/pages/Drawer.tsx +++ b/frontend/src/pages/Drawer.tsx @@ -1,10 +1,10 @@ import { FeatherIcon } from "@phosphor-icons/react"; import { useState } from "react"; import { useNavigate } from "react-router-dom"; +import { DrawerSection } from "../components/drawer/DrawerSection.tsx"; +import { LetterItem } from "../components/drawer/LetterItem.tsx"; +import { PasskeyModal } from "../components/drawer/PasskeyModal.tsx"; import Logo from "../components/Logo"; -import { DrawerSection } from "../components/ui/DrawerSection"; -import { LetterItem } from "../components/ui/LetterItem"; -import { PasskeyModal } from "../components/ui/PasskeyModal"; import { PATHS } from "../config/routes"; import { useAuth } from "../hooks/useAuth"; import { useLetters } from "../hooks/useLetters"; diff --git a/frontend/src/pages/Editor.test.tsx b/frontend/src/pages/Editor.test.tsx index 4f4a8d4..f1dc66e 100644 --- a/frontend/src/pages/Editor.test.tsx +++ b/frontend/src/pages/Editor.test.tsx @@ -13,7 +13,7 @@ import Editor from "./Editor"; const API_URL = import.meta.env.VITE_API_URL; // Mock ComposeCanvas to avoid Fabric.js issues and check readOnly prop -vi.mock("../components/ui/ComposeCanvas", () => ({ +vi.mock("../components/editor/ComposeCanvas", () => ({ ComposeCanvas: vi.fn(({ readOnly }) => (
+ To ensure complete privacy, all
+ your letters are{" "}
+
+ sealed with your password
+
+ , which only you have access to.
+
+
+ The server never sees it, and it's a solemn promise!
+
+
+ If you ever happen to forget your password, your letters are lost + to time, forever. +
+
- To ensure complete privacy,
- all your letters are{" "}
-
- sealed with your password
-
- , which only you have access to.
-
-
- The server never sees it, and it's a solemn promise!
-
-
- If you ever happen to forget your password, your letters are - lost to time, forever. -
-