Refactor PrivacyDropdown to TypeScript (#36979)

This commit is contained in:
diondiondion authored and GitHub committed 2025-11-21 13:33:27 +00:00
1 parent 48fe679728
commit 8a235dd187
4 files changed
+203 -178

No files matched your search

@@ -1,19 +0,0 @@
import { connect } from 'react-redux';
import { changeComposeVisibility } from '@/mastodon/actions/compose_typed';
import PrivacyDropdown from '../components/privacy_dropdown';
const mapStateToProps = state => ({
value: state.getIn(['compose', 'privacy']),
});
const mapDispatchToProps = dispatch => ({
onChange (value) {
dispatch(changeComposeVisibility(value));
},
});
export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);