refactor: rmove tsx prefixes from imports

This commit is contained in:
me
2026-05-08 09:54:28 +05:30
parent 143b992391
commit 55583255bc
7 changed files with 24 additions and 22 deletions
@@ -307,7 +307,9 @@ export function ComposeCanvas({
lastWidth = nextWidth;
syncViewport();
});
resizeObserver.observe(wrapperRef.current!);
if (wrapperRef.current) {
resizeObserver.observe(wrapperRef.current);
}
};
initCanvas().then();
+1 -1
View File
@@ -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;
@@ -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
</a>{" "}