1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/pages/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.container.js
2021-04-28 14:53:59 -05:00

13 lines
362 B
JavaScript

import { connect } from 'react-redux';
import { getSendErrors } from '../../../../../selectors';
import SendRowErrorMessage from './send-row-error-message.component';
export default connect(mapStateToProps)(SendRowErrorMessage);
function mapStateToProps(state, ownProps) {
return {
errors: getSendErrors(state),
errorType: ownProps.errorType,
};
}