1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

ButtonIcon: fix react component proptype (#16942)

This commit is contained in:
Jyoti Puri 2022-12-14 02:53:39 +05:30 committed by GitHub
parent e83111cc7e
commit dc5a9f967d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ ButtonIcon.propTypes = {
/**
* The name of the icon to display. Should be one of ICON_NAMES
*/
iconName: PropTypes.oneOf(ICON_NAMES).isRequired,
iconName: PropTypes.oneOf(Object.values(ICON_NAMES)).isRequired,
/**
* iconProps accepts all the props from Icon
*/