Bloxwap / HIG0.1.1
Component referenceBlocks

ClaimRewardBlock

Loading preview…

API reference

export declare function ClaimRewardBlock({ amount, symbol, walletAddress, chain, details, labels, onClaim, onCancel, note, attestation, status, transaction, error, onBack, backProps, headerAction, stickyHeader, headingId }: ClaimRewardBlockProps): React.JSX.Element;

React Native API

export declare function ClaimRewardBlock({ amount, symbol, walletAddress, chain, details, labels, onClaim, onCancel, note, attestation, status, transaction, error, onBack, backProps, headerAction, stickyHeader, stickyHeaderBackground, scrollComponent, headingId, testID }: ClaimRewardBlockProps): React.JSX.Element;

Usage & accessibility

The prize amount and the Claim and Cancel buttons are named. The attestation is a labelled checkbox; while it is unticked Claim is unavailable and carries the host's reason as its description. The status line is a live region, and a failed claim is an alert..

Feedback: Without the claim step, Claim opens the host confirmation screen. With it, Claim asks the host to send the prize and the host sets the status. Cancel dismisses the prize..

Read the usage guide

On this page