Skip to content

Fix missing XCircleIcon import in Plans.tsx#59

Open
PVTois wants to merge 1 commit into
occult:mainfrom
PVTois:fix/missing-xcircleicon-import-plans
Open

Fix missing XCircleIcon import in Plans.tsx#59
PVTois wants to merge 1 commit into
occult:mainfrom
PVTois:fix/missing-xcircleicon-import-plans

Conversation

@PVTois

@PVTois PVTois commented May 28, 2026

Copy link
Copy Markdown

Problem

resources/js/Pages/Plans.tsx renders <XCircleIcon /> in the subscription-failed error card (line 182), but the lucide-react import on line 9 only brings in CheckIcon and CreditCardIcon. As a result, npx tsc --noEmit fails:

resources/js/Pages/Plans.tsx(182,18): error TS2304: Cannot find name 'XCircleIcon'.

The icon only appears in the form.isSubmitted && !form.isValid branch, so it never surfaces in normal rendering — which is likely why it went unnoticed.

Fix

Add XCircleIcon to the existing lucide-react import:

-import { CheckIcon, CreditCardIcon } from "lucide-react";
+import { CheckIcon, CreditCardIcon, XCircleIcon } from "lucide-react";

One-line change, no behavior change. npx tsc --noEmit passes afterward.

Plans.tsx uses <XCircleIcon /> in the subscription-failed error card
(line 182) but only imports CheckIcon and CreditCardIcon from
lucide-react, so `npx tsc --noEmit` fails with:

  Plans.tsx(182,18): error TS2304: Cannot find name 'XCircleIcon'.

Add XCircleIcon to the lucide-react import to fix the type error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant