You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
430 B
15 lines
430 B
import { connect } from 'react-redux'
|
|
|
|
import { getFieldValue, getFieldNotification } from 'src/selectors'
|
|
import { AppState } from 'src/types'
|
|
|
|
import TextField, { Props } from './text-field'
|
|
|
|
const mapStateToProps = (state: AppState, ownProps: Props) => ({
|
|
value: getFieldValue(state, ownProps.name),
|
|
notification: getFieldNotification(state, ownProps.name),
|
|
})
|
|
|
|
export default connect(
|
|
mapStateToProps
|
|
)(TextField)
|