Created
August 23, 2016 21:32
-
-
Save mangs/b9a52d6318e2c3bb918764bc086e0677 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const propTypes = { | |
actions: React.PropTypes.object, | |
store: React.PropTypes.shape({ | |
isConfirmationDialogOpen: React.PropTypes.bool, | |
audioAudioToEdit: React.PropTypes.instanceOf(Immutable.Map), | |
audioDialog: React.PropTypes.instanceOf(Immutable.Map), | |
audioFilterOption: React.PropTypes.string, | |
}), | |
}; | |
... | |
function mapStateToProps(state) { | |
return { | |
store: { | |
isConfirmationDialogOpen: state.appConfirmationDialog.get('audio'), | |
audioAudioToEdit: state.audioAudioToEdit, | |
audioDialog: state.audioDialog, | |
audioFilterOption: state.audioFilterOption, | |
}, | |
}; | |
} | |
... | |
export default connect(mapStateToProps)(AudioIndex); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My how times have changed...