Fix TS6133: remove unused React imports and lightningAddressTouched

Made-with: Cursor
This commit is contained in:
Michaël
2026-02-26 18:56:07 -03:00
parent c005e4755b
commit d55db09b43
6 changed files with 2 additions and 8 deletions

View File

@@ -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 { postUserRefreshProfile, type UserProfile } from "../api";
import { useClaimFlow } from "../hooks/useClaimFlow"; import { useClaimFlow } from "../hooks/useClaimFlow";
import { StepIndicator } from "./StepIndicator"; import { StepIndicator } from "./StepIndicator";

View File

@@ -1,4 +1,3 @@
import React from "react";
import { motion, AnimatePresence } from "framer-motion"; import { motion, AnimatePresence } from "framer-motion";
import { Countdown } from "./Countdown"; import { Countdown } from "./Countdown";
import type { QuoteResult } from "../api"; import type { QuoteResult } from "../api";

View File

@@ -1,4 +1,3 @@
import React from "react";
import { ConnectNostr } from "./ConnectNostr"; import { ConnectNostr } from "./ConnectNostr";
interface ConnectStepProps { interface ConnectStepProps {

View File

@@ -1,4 +1,3 @@
import React from "react";
import { ClaimDenialPanel } from "./ClaimDenialPanel"; import { ClaimDenialPanel } from "./ClaimDenialPanel";
import { ELIGIBILITY_PROGRESS_STEPS } from "../hooks/useClaimFlow"; import { ELIGIBILITY_PROGRESS_STEPS } from "../hooks/useClaimFlow";
import type { DenialState } from "../hooks/useClaimFlow"; import type { DenialState } from "../hooks/useClaimFlow";
@@ -23,7 +22,7 @@ const LIGHTNING_ADDRESS_REGEX = /^[^@]+@[^@]+$/;
export function EligibilityStep({ export function EligibilityStep({
lightningAddress, lightningAddress,
onLightningAddressChange, onLightningAddressChange,
lightningAddressTouched, lightningAddressTouched: _lightningAddressTouched,
setLightningAddressTouched, setLightningAddressTouched,
invalid, invalid,
fromProfile, fromProfile,

View File

@@ -1,5 +1,3 @@
import React from "react";
const STEPS = [ const STEPS = [
{ step: 1, label: "Connect" }, { step: 1, label: "Connect" },
{ step: 2, label: "Check" }, { step: 2, label: "Check" },

View File

@@ -1,4 +1,3 @@
import React from "react";
import { Countdown } from "./Countdown"; import { Countdown } from "./Countdown";
import { useToast } from "../contexts/ToastContext"; import { useToast } from "../contexts/ToastContext";
import type { ConfirmResult } from "../api"; import type { ConfirmResult } from "../api";