Fix TS6133: remove unused React imports and lightningAddressTouched
Made-with: Cursor
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import React from "react";
|
|
||||||
import { ConnectNostr } from "./ConnectNostr";
|
import { ConnectNostr } from "./ConnectNostr";
|
||||||
|
|
||||||
interface ConnectStepProps {
|
interface ConnectStepProps {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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" },
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user