diff --git a/.changeset/sendpage-missing-import.md b/.changeset/sendpage-missing-import.md new file mode 100644 index 00000000..602ffd2c --- /dev/null +++ b/.changeset/sendpage-missing-import.md @@ -0,0 +1,5 @@ +--- +"@cofhe/react": patch +--- + +Fixed a missing `FloatingButtonPage` import in `SendPage.tsx`. The file referenced `FloatingButtonPage.Send` inside its `declare module` type-augmentation block without importing `FloatingButtonPage`, unlike the identical pattern in `PortfolioPage.tsx`. This passed `tsc` (a type-only ambient context) but failed ESLint's `no-undef` rule. diff --git a/packages/react/src/components/CofheFloatingButton/pages/SendPage.tsx b/packages/react/src/components/CofheFloatingButton/pages/SendPage.tsx index 60d48c7e..321cb7da 100644 --- a/packages/react/src/components/CofheFloatingButton/pages/SendPage.tsx +++ b/packages/react/src/components/CofheFloatingButton/pages/SendPage.tsx @@ -1,6 +1,7 @@ import { useState, useMemo } from 'react'; import { ArrowBackIcon, KeyboardArrowRightIcon } from '@/components/Icons'; import { isAddress, maxUint128 } from 'viem'; +import { FloatingButtonPage } from '../pagesConfig/types'; import { useCofheAccount } from '@/hooks/useCofheConnection'; import { useCofheTokenDecryptedBalance } from '@/hooks/useCofheTokenDecryptedBalance'; import { useCofheTokenTransfer } from '@/hooks/useCofheTokenTransfer';