From 3df635c24df08071385ef155f5a0c8e2a86293db Mon Sep 17 00:00:00 2001 From: Anandan Date: Sat, 4 Apr 2026 11:38:30 +0530 Subject: [PATCH] Remove a tiny PromptInput batch of unused React imports (#323) This seventh pass continues issue #314 with a two-file PromptInput micro-batch. Both files shared the same single-warning pattern for an unused React import, so the cleanup stays extremely small, behavior-neutral, and easy to review. Constraint: Keep pass 7 to the exact two-file PromptInput pair with the same warning shape Rejected: Fold in broader PromptInput cleanup or unrelated warnings | would expand scope beyond a simple micro-pass Confidence: high Scope-risk: narrow Reversibility: clean Directive: Continue harvesting paired file/test micro-batches when the compiler output exposes them cleanly Tested: bun run build; bun run smoke; targeted noUnused grep for touched files via bun x tsc --noEmit --noUnusedLocals --noUnusedParameters --pretty false Not-tested: full repo typecheck (broader baseline noise remains outside this pass) Co-authored-by: anandh8x --- src/components/PromptInput/PromptInputFooterSuggestions.test.tsx | 1 - src/components/PromptInput/PromptInputFooterSuggestions.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/components/PromptInput/PromptInputFooterSuggestions.test.tsx b/src/components/PromptInput/PromptInputFooterSuggestions.test.tsx index c03b2432..3ac3649e 100644 --- a/src/components/PromptInput/PromptInputFooterSuggestions.test.tsx +++ b/src/components/PromptInput/PromptInputFooterSuggestions.test.tsx @@ -1,5 +1,4 @@ import figures from 'figures' -import React from 'react' import { describe, expect, it } from 'bun:test' import { renderToString } from '../../utils/staticRender.js' import { diff --git a/src/components/PromptInput/PromptInputFooterSuggestions.tsx b/src/components/PromptInput/PromptInputFooterSuggestions.tsx index de1e7c95..3307e4ce 100644 --- a/src/components/PromptInput/PromptInputFooterSuggestions.tsx +++ b/src/components/PromptInput/PromptInputFooterSuggestions.tsx @@ -1,5 +1,4 @@ import figures from 'figures' -import * as React from 'react' import { memo, type ReactNode } from 'react' import { useTerminalSize } from '../../hooks/useTerminalSize.js' import { stringWidth } from '../../ink/stringWidth.js'