Skip to content

type WalletStatusVerifier children as ReactNode instead of ReactElement #454

@gabitoesmiapodo

Description

@gabitoesmiapodo

User story / Problem statement

Currently, WalletStatusVerifier types its children prop as ReactElement (WalletStatusVerifier.tsx:30), which forces consumers to wrap content in fragments and suppress lint warnings. Since the component is just a context provider, there is no reason to restrict children to ReactElement.

Expected outcome

Consumers can pass any valid React children (strings, fragments, arrays, null) without fragment wrappers or lint suppressions.

Acceptance criteria

  • Change children?: ReactElement to children?: ReactNode in WalletStatusVerifierProps
  • Remove any fragment wrappers or lint suppressions that were only needed because of the ReactElement constraint
  • Existing tests pass

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions