dispatch/client/src/js/containers/Settings.js

20 lines
441 B
JavaScript
Raw Normal View History

2016-01-11 20:04:57 +00:00
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import Settings from 'components/pages/Settings';
import { getSettings, setCert, setKey, uploadCert } from 'state/settings';
2016-01-11 20:04:57 +00:00
const mapState = createStructuredSelector({
settings: getSettings
});
2017-06-29 05:11:12 +00:00
const mapDispatch = {
onCertChange: setCert,
onKeyChange: setKey,
uploadCert
};
2018-05-28 01:16:05 +00:00
export default connect(
mapState,
mapDispatch
)(Settings);