aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-content/send-row-wrapper/send-row-error-message/send-row-error-message.container.js
blob: 59622047f109a651c71e671413616234d99ca5b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { connect } from 'react-redux'
import { getSendErrors } from '../../../send.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,
  }
}