Peel off another tiny display-component cleanup batch (#318)

This third pass continues the issue #314 cleanup series with four very small display-oriented components. The changes only remove unused React imports and reconnect existing Props aliases or parameter types where the files were otherwise surfacing straightforward compiler noise.

Constraint: Keep the pass limited to trivial display components with uniform low-risk cleanup shape
Rejected: Mix in files with unrelated missing-module or broader logic noise | weakens review focus and muddies verification
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Prefer these tiny homogeneous slices while the repo still has wider baseline no-unused noise
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 <test@example.com>
This commit is contained in:
Anandan
2026-04-04 11:41:44 +05:30
committed by GitHub
parent bffd43056f
commit 03dff274a1
4 changed files with 6 additions and 10 deletions

View File

@@ -1,5 +1,4 @@
import { c as _c } from "react-compiler-runtime";
import React from 'react';
import { Text } from '../ink.js';
import { Select } from './CustomSelect/index.js';
import { Dialog } from './design-system/Dialog.js';
@@ -13,7 +12,7 @@ type Props = {
* Dialog shown when switching from latest to stable channel.
* Allows user to choose whether to downgrade or stay on current version.
*/
export function ChannelDowngradeDialog(t0) {
export function ChannelDowngradeDialog(t0: Props) {
const $ = _c(17);
const {
currentVersion,
@@ -21,7 +20,7 @@ export function ChannelDowngradeDialog(t0) {
} = t0;
let t1;
if ($[0] !== onChoice) {
t1 = function handleSelect(value) {
t1 = function handleSelect(value: ChannelDowngradeChoice) {
onChoice(value);
};
$[0] = onChoice;