Skip to content

Commit

Permalink
CcyUSDAmountInput: added props descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytroshch committed Feb 23, 2022
1 parent 806edfa commit cc9fd1b
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,39 @@ export const CcyUSDAmountInput = ({
}

CcyUSDAmountInput.propTypes = {
/**
* The currency used in input
*/
currency: PropTypes.string.isRequired,
/**
* The currency symbol rendered
*/
symbol: PropTypes.string.isRequired,
/**
* The value of the input
*/
value: PropTypes.string.isRequired,
/**
* The function called when the input changes.
*/
onChange: PropTypes.func.isRequired,
/**
* The min value of the input
*/
minAmount: PropTypes.number,
/**
* If true, the block with the
* USD equivalent is dispayed next to
*/
showUsdEquivalent: PropTypes.bool,
/**
* The error message is dispayed below input
*/
error: PropTypes.string,
/**
* The function which calculates
* the USD equivalent of value
*/
convertCcy: PropTypes.func.isRequired,
}

Expand Down

0 comments on commit cc9fd1b

Please sign in to comment.