Skip to content

Instantly share code, notes, and snippets.

@mangs
Created August 23, 2016 21:32
Show Gist options
  • Save mangs/b9a52d6318e2c3bb918764bc086e0677 to your computer and use it in GitHub Desktop.
Save mangs/b9a52d6318e2c3bb918764bc086e0677 to your computer and use it in GitHub Desktop.
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);
@mangs
Copy link
Author

mangs commented Feb 20, 2019

My how times have changed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment