Trim another narrow batch of dialog cleanup noise (#317)
This follow-up pass continues the phased unused-code cleanup from issue #314 with four dialog components that shared the same low-risk pattern: avoidable unused imports, dormant Props aliases, and untyped callback plumbing that only existed as compiler noise. The changes keep behavior intact while reducing the next layer of cleanup friction. Constraint: Keep the second pass narrowly scoped and homogeneous so it stays easy to review beside PR #316 Rejected: Fold in EffortCallout and wider component cleanup at the same time | larger surface area and less uniform risk profile Confidence: high Scope-risk: narrow Reversibility: clean Directive: Continue batching future passes by shared cleanup pattern; leave broader refactors and compatibility placeholders for separate PRs 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:
@@ -14,14 +14,14 @@ type Props = {
|
||||
// Startup gate: decline exits the process, so relabel accordingly.
|
||||
declineExits?: boolean;
|
||||
};
|
||||
export function AutoModeOptInDialog(t0) {
|
||||
export function AutoModeOptInDialog(t0: Props) {
|
||||
const $ = _c(18);
|
||||
const {
|
||||
onAccept,
|
||||
onDecline,
|
||||
declineExits
|
||||
} = t0;
|
||||
let t1;
|
||||
let t1: [];
|
||||
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
||||
t1 = [];
|
||||
$[0] = t1;
|
||||
@@ -31,7 +31,7 @@ export function AutoModeOptInDialog(t0) {
|
||||
React.useEffect(_temp, t1);
|
||||
let t2;
|
||||
if ($[1] !== onAccept || $[2] !== onDecline) {
|
||||
t2 = function onChange(value) {
|
||||
t2 = function onChange(value: 'accept' | 'accept-default' | 'decline') {
|
||||
bb3: switch (value) {
|
||||
case "accept":
|
||||
{
|
||||
@@ -109,7 +109,7 @@ export function AutoModeOptInDialog(t0) {
|
||||
}
|
||||
let t8;
|
||||
if ($[9] !== onChange) {
|
||||
t8 = value_0 => onChange(value_0 as 'accept' | 'accept-default' | 'decline');
|
||||
t8 = (value_0: string) => onChange(value_0 as 'accept' | 'accept-default' | 'decline');
|
||||
$[9] = onChange;
|
||||
$[10] = t8;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user