1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix token cell props (#8142)

The `hideSidebar` proptype of `TokenCell` was set as an optional bool,
when it should have been a required function.
This commit is contained in:
Mark Stacey 2020-03-01 06:13:59 -04:00 committed by GitHub
parent 887bc078d7
commit ae1ed7079f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ export default class TokenCell extends Component {
selectedTokenAddress: PropTypes.string,
contractExchangeRates: PropTypes.object,
conversionRate: PropTypes.number,
hideSidebar: PropTypes.bool,
hideSidebar: PropTypes.func.isRequired,
sidebarOpen: PropTypes.bool,
currentCurrency: PropTypes.string,
image: PropTypes.string,