🟡 CalendarDisplay: orphaned component with duplicate displayName #62

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

File: src/components/game/CalendarDisplay.tsx

Issues:

  1. Orphaned: Exported from game/index.ts but never imported or rendered anywhere in the app.
  2. Duplicate displayName: CalendarDisplay.displayName is assigned twice (lines 52 and 53) — a copy-paste error.
  3. Unused props: The component accepts hour and incursionStrength in its interface but the function signature only destructures { day }. The incursionStrength prop is completely unused.

Impact: Dead code. Minor code quality issues.

Fix: Either integrate into the header/time display area or remove. Fix the duplicate displayName and unused props.

**File:** `src/components/game/CalendarDisplay.tsx` Issues: 1. **Orphaned:** Exported from `game/index.ts` but never imported or rendered anywhere in the app. 2. **Duplicate displayName:** `CalendarDisplay.displayName` is assigned twice (lines 52 and 53) — a copy-paste error. 3. **Unused props:** The component accepts `hour` and `incursionStrength` in its interface but the function signature only destructures `{ day }`. The `incursionStrength` prop is completely unused. **Impact:** Dead code. Minor code quality issues. **Fix:** Either integrate into the header/time display area or remove. Fix the duplicate displayName and unused props.
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 — CalendarDisplay orphaned with duplicate displayName.

[priority: 2] ORPHANED/DEAD CODE — CalendarDisplay orphaned with duplicate displayName.
Author
Owner

Fixed: Deleted orphaned CalendarDisplay.tsx component (never imported anywhere).

Fixed: Deleted orphaned CalendarDisplay.tsx component (never imported anywhere).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#62