Skip to content

Narrow YieldExplainers action prop type to match actual usage #11824

@coderabbitai

Description

@coderabbitai

The YieldExplainers component's type signature includes action: 'enter' | 'exit' | 'claim', but in practice it only receives 'enter' or 'exit' because YieldForm guards against the claim action with {!isClaimAction && <YieldExplainers ... />}.

The type signature should be narrowed to action: 'enter' | 'exit' to accurately reflect actual usage and prevent confusion.

File: src/pages/Yields/components/YieldExplainers.tsx

Context:

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions