2c72035000
Closes #344
24 lines
586 B
JavaScript
24 lines
586 B
JavaScript
import { connect } from 'react-redux';
|
|
import { initSettings, toggleSetting, handleUpstreamChange, setUpstream, testUpstream, addErrorToast } from '../actions';
|
|
import Settings from '../components/Settings';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { settings, dashboard } = state;
|
|
const props = { settings, dashboard };
|
|
return props;
|
|
};
|
|
|
|
const mapDispatchToProps = {
|
|
initSettings,
|
|
toggleSetting,
|
|
handleUpstreamChange,
|
|
setUpstream,
|
|
testUpstream,
|
|
addErrorToast,
|
|
};
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps,
|
|
)(Settings);
|