From 6b12ec877b87016e80c98d4bd75b56efd80ce1bc Mon Sep 17 00:00:00 2001 From: megaproxy Date: Fri, 22 May 2026 18:35:10 +0100 Subject: [PATCH] Remove unused React imports (Notifications, Palette) Modern React 17+ JSX transform doesn't need `import React from "react"` unless React itself is referenced. The two component files had stale imports left over from the agent that scaffolded them; tsc -b under the build config trips on them as TS6133. Drop them. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/Notifications.tsx | 1 - src/components/Palette.tsx | 2 +- tsconfig.app.tsbuildinfo | 1 + tsconfig.node.tsbuildinfo | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tsconfig.app.tsbuildinfo create mode 100644 tsconfig.node.tsbuildinfo diff --git a/src/components/Notifications.tsx b/src/components/Notifications.tsx index ecad26e..0727708 100644 --- a/src/components/Notifications.tsx +++ b/src/components/Notifications.tsx @@ -1,4 +1,3 @@ -import React from "react"; import "./Notifications.css"; export interface Toast { diff --git a/src/components/Palette.tsx b/src/components/Palette.tsx index 35472f2..073294d 100644 --- a/src/components/Palette.tsx +++ b/src/components/Palette.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef, useMemo } from "react"; +import { useState, useEffect, useRef, useMemo } from "react"; import type { LeafNode } from "../lib/layout/tree"; import "./Palette.css"; diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo new file mode 100644 index 0000000..8516056 --- /dev/null +++ b/tsconfig.app.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./src/App.tsx","./src/ipc.ts","./src/main.tsx","./src/components/Notifications.tsx","./src/components/Palette.tsx","./src/components/XtermPane.tsx","./src/lib/layout/LeafPane.tsx","./src/lib/layout/Pane.tsx","./src/lib/layout/SplitNode.tsx","./src/lib/layout/orchestration.tsx","./src/lib/layout/tree.test.ts","./src/lib/layout/tree.ts"],"version":"5.9.3"} \ No newline at end of file diff --git a/tsconfig.node.tsbuildinfo b/tsconfig.node.tsbuildinfo new file mode 100644 index 0000000..62c7bf9 --- /dev/null +++ b/tsconfig.node.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./vite.config.ts"],"version":"5.9.3"} \ No newline at end of file