🟡 ConfirmDialog: dead code — fully implemented but never imported #61

Closed
opened 2026-05-18 17:06:39 +02:00 by Anexim · 2 comments
Owner

File: src/components/game/ConfirmDialog.tsx (184 lines)

ConfirmDialog is a fully implemented confirmation dialog component with useConfirmDialog hook and ConfirmDialogVariant type. It exports ConfirmDialog, useConfirmDialog, and has a default export. However, no file in the codebase imports it. The EnchantmentPreparer that needs confirmation dialogs uses raw shadcn AlertDialog instead.

Impact: Dead code. 184 lines of unused component.

Fix: Either integrate ConfirmDialog where confirmation dialogs are needed (replacing raw AlertDialog usage), or remove it.

**File:** `src/components/game/ConfirmDialog.tsx` (184 lines) `ConfirmDialog` is a fully implemented confirmation dialog component with `useConfirmDialog` hook and `ConfirmDialogVariant` type. It exports `ConfirmDialog`, `useConfirmDialog`, and has a default export. However, **no file in the codebase imports it**. The `EnchantmentPreparer` that needs confirmation dialogs uses raw shadcn `AlertDialog` instead. **Impact:** Dead code. 184 lines of unused component. **Fix:** Either integrate `ConfirmDialog` where confirmation dialogs are needed (replacing raw `AlertDialog` usage), or remove it.
Anexim added the ai:todo label 2026-05-18 17:06:39 +02:00
n8n-gitea was assigned by Anexim 2026-05-18 17:06:39 +02:00
Author
Owner

[priority: 2] ORPHANED/DEAD CODE — ConfirmDialog fully implemented but never imported.

[priority: 2] ORPHANED/DEAD CODE — ConfirmDialog fully implemented but never imported.
Author
Owner

Fixed: Deleted orphaned ConfirmDialog.tsx (never imported — EnchantmentPreparer uses AlertDialog from shadcn instead).

Fixed: Deleted orphaned ConfirmDialog.tsx (never imported — EnchantmentPreparer uses AlertDialog from shadcn instead).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#61