mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 05:48:07 +01:00
24 lines
601 B
JavaScript
24 lines
601 B
JavaScript
// Package imports //
|
|
import { connect } from 'react-redux';
|
|
|
|
// Mastodon imports //
|
|
import { closeModal } from 'mastodon/actions/modal';
|
|
|
|
// Our imports //
|
|
import { changeLocalSetting } from 'glitch/actions/local_settings';
|
|
import LocalSettings from '.';
|
|
|
|
const mapStateToProps = state => ({
|
|
settings: state.get('local_settings'),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
onChange (setting, value) {
|
|
dispatch(changeLocalSetting(setting, value));
|
|
},
|
|
onClose () {
|
|
dispatch(closeModal());
|
|
},
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(LocalSettings);
|