diff --git a/frontend/src/components/editor/ComposeCanvas.tsx b/frontend/src/components/editor/ComposeCanvas.tsx index 6284ce5..52e6efc 100644 --- a/frontend/src/components/editor/ComposeCanvas.tsx +++ b/frontend/src/components/editor/ComposeCanvas.tsx @@ -307,7 +307,9 @@ export function ComposeCanvas({ lastWidth = nextWidth; syncViewport(); }); - resizeObserver.observe(wrapperRef.current!); + if (wrapperRef.current) { + resizeObserver.observe(wrapperRef.current); + } }; initCanvas().then(); diff --git a/frontend/src/components/editor/ToolBar.tsx b/frontend/src/components/editor/ToolBar.tsx index 776d715..ef16a4a 100644 --- a/frontend/src/components/editor/ToolBar.tsx +++ b/frontend/src/components/editor/ToolBar.tsx @@ -11,7 +11,7 @@ import { XCircleIcon, } from "@phosphor-icons/react"; import { Modal } from "../ui/Modal"; -import type { CanvasStyle } from "./ComposeCanvas.tsx"; +import type { CanvasStyle } from "./ComposeCanvas"; interface ToolBarProps { onAddImage: () => void; diff --git a/frontend/src/components/login/WelcomeModal.tsx b/frontend/src/components/login/WelcomeModal.tsx index 54fb678..97dd30d 100644 --- a/frontend/src/components/login/WelcomeModal.tsx +++ b/frontend/src/components/login/WelcomeModal.tsx @@ -3,9 +3,9 @@ import { ShieldCheckIcon, WarningIcon, } from "@phosphor-icons/react"; -import Logo from "../Logo.tsx"; +import Logo from "../Logo"; import { Modal } from "../ui/Modal"; -import Saajan from "../ui/Saajan.tsx"; +import Saajan from "../ui/Saajan"; export default function WelcomeModal({ setShowWelcome, @@ -53,7 +53,7 @@ export default function WelcomeModal({ href="https://www.privacyguides.org/en/passwords/" target="_blank" className="link link-primary-content" - rel="noopener" + rel="noopener noreferrer" > password manager {" "} diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 56bbadc..90e6f0e 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -7,7 +7,7 @@ import "@fontsource-variable/playwrite-hr-lijeva/wght.css"; import "@fontsource-variable/jost/wght.css"; import "@fontsource-variable/playfair-display/wght.css"; -import App from "./App.tsx"; +import App from "./App"; const root = document.getElementById("root"); if (root) { diff --git a/frontend/src/pages/About.tsx b/frontend/src/pages/About.tsx index b4412d1..3449f3f 100644 --- a/frontend/src/pages/About.tsx +++ b/frontend/src/pages/About.tsx @@ -25,7 +25,7 @@ import { ReactLenis } from "lenis/react"; import { AnimatePresence, motion, useScroll, useTransform } from "motion/react"; import { useEffect, useRef, useState } from "react"; import stamp from "../assets/envelope/stamp.png"; -import Logo from "../components/Logo.tsx"; +import Logo from "../components/Logo"; import { Modal } from "../components/ui/Modal"; import "@fontsource/kavivanar/index.css"; @@ -35,7 +35,7 @@ import "@fontsource/architects-daughter/index.css"; import { useNavigate } from "react-router-dom"; function HorizontalScroll({ children }: { children: React.ReactNode }) { - const ref = useRef(null); + const ref = useRef(null); const { scrollYProgress } = useScroll({ target: ref }); const x = useTransform(scrollYProgress, [0, 1], ["0%", "-50%"]); @@ -257,7 +257,7 @@ function SpecsSection() { {" "} for the keys. -

+

This means, both the{" "} encryption and{" "} decryption runs on @@ -288,8 +288,8 @@ function SpecsSection() { only you—hold the very thing that opens that box,{" "} your password. -

-

+

+
Nothing on the server is readable without your actual password.
@@ -304,14 +304,14 @@ function SpecsSection() { (unless this happens)
-
+
-

+