Redesigned compose form
This commit is contained in:
parent
9bf4c34919
commit
d8c5a83827
21 changed files with 477 additions and 218 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import { connect } from 'react-redux';
|
||||
import PrivateToggle from '../components/private_toggle';
|
||||
import { changeComposeVisibility } from '../../../actions/compose';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
isPrivate: state.getIn(['compose', 'private'])
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
|
||||
onChange (e) {
|
||||
dispatch(changeComposeVisibility(e.target.checked));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(PrivateToggle);
|
||||
Loading…
Add table
Add a link
Reference in a new issue