From d55db09b43611e460fb83ea66c50135634a56033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl?= Date: Thu, 26 Feb 2026 18:56:07 -0300 Subject: [PATCH] Fix TS6133: remove unused React imports and lightningAddressTouched Made-with: Cursor --- frontend/src/components/ClaimWizard.tsx | 2 +- frontend/src/components/ConfirmStep.tsx | 1 - frontend/src/components/ConnectStep.tsx | 1 - frontend/src/components/EligibilityStep.tsx | 3 +-- frontend/src/components/StepIndicator.tsx | 2 -- frontend/src/components/SuccessStep.tsx | 1 - 6 files changed, 2 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/ClaimWizard.tsx b/frontend/src/components/ClaimWizard.tsx index cc3a38f..3b1cb1c 100644 --- a/frontend/src/components/ClaimWizard.tsx +++ b/frontend/src/components/ClaimWizard.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef, useMemo } from "react"; +import { useState, useEffect, useRef, useMemo } from "react"; import { postUserRefreshProfile, type UserProfile } from "../api"; import { useClaimFlow } from "../hooks/useClaimFlow"; import { StepIndicator } from "./StepIndicator"; diff --git a/frontend/src/components/ConfirmStep.tsx b/frontend/src/components/ConfirmStep.tsx index 42c4f81..71210fd 100644 --- a/frontend/src/components/ConfirmStep.tsx +++ b/frontend/src/components/ConfirmStep.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { motion, AnimatePresence } from "framer-motion"; import { Countdown } from "./Countdown"; import type { QuoteResult } from "../api"; diff --git a/frontend/src/components/ConnectStep.tsx b/frontend/src/components/ConnectStep.tsx index 9a2e126..2ec5fd5 100644 --- a/frontend/src/components/ConnectStep.tsx +++ b/frontend/src/components/ConnectStep.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { ConnectNostr } from "./ConnectNostr"; interface ConnectStepProps { diff --git a/frontend/src/components/EligibilityStep.tsx b/frontend/src/components/EligibilityStep.tsx index 056ddfd..1691833 100644 --- a/frontend/src/components/EligibilityStep.tsx +++ b/frontend/src/components/EligibilityStep.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { ClaimDenialPanel } from "./ClaimDenialPanel"; import { ELIGIBILITY_PROGRESS_STEPS } from "../hooks/useClaimFlow"; import type { DenialState } from "../hooks/useClaimFlow"; @@ -23,7 +22,7 @@ const LIGHTNING_ADDRESS_REGEX = /^[^@]+@[^@]+$/; export function EligibilityStep({ lightningAddress, onLightningAddressChange, - lightningAddressTouched, + lightningAddressTouched: _lightningAddressTouched, setLightningAddressTouched, invalid, fromProfile, diff --git a/frontend/src/components/StepIndicator.tsx b/frontend/src/components/StepIndicator.tsx index 2b93e53..582a216 100644 --- a/frontend/src/components/StepIndicator.tsx +++ b/frontend/src/components/StepIndicator.tsx @@ -1,5 +1,3 @@ -import React from "react"; - const STEPS = [ { step: 1, label: "Connect" }, { step: 2, label: "Check" }, diff --git a/frontend/src/components/SuccessStep.tsx b/frontend/src/components/SuccessStep.tsx index 1583d2f..541aa70 100644 --- a/frontend/src/components/SuccessStep.tsx +++ b/frontend/src/components/SuccessStep.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Countdown } from "./Countdown"; import { useToast } from "../contexts/ToastContext"; import type { ConfirmResult } from "../api";