]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/glitch/components/local_settings/container.js
2 import { connect
} from 'react-redux';
5 import { closeModal
} from '../../../mastodon/actions/modal';
8 import { changeLocalSetting
} from '../../../glitch/actions/local_settings';
9 import LocalSettings
from '.';
11 const mapStateToProps
= state
=> ({
12 settings: state
.get('local_settings'),
15 const mapDispatchToProps
= dispatch
=> ({
16 onChange (setting
, value
) {
17 dispatch(changeLocalSetting(setting
, value
));
20 dispatch(closeModal());
24 export default connect(mapStateToProps
, mapDispatchToProps
)(LocalSettings
);
This page took 0.069956 seconds and 4 git commands to generate.