1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 23:14:56 +01:00
metamask-extension/ui/pages/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.container.js

13 lines
362 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { getSendErrors } from '../../../../../selectors';
import SendRowErrorMessage from './send-row-error-message.component';
2018-04-07 00:29:51 +02:00
export default connect(mapStateToProps)(SendRowErrorMessage);
2018-04-07 00:29:51 +02:00
2020-11-03 00:41:28 +01:00
function mapStateToProps(state, ownProps) {
2018-04-07 00:29:51 +02:00
return {
errors: getSendErrors(state),
errorType: ownProps.errorType,
};
}