Improving statuses, adding a composer drawer, which doesn't work yet
This commit is contained in:
parent
f5e1127894
commit
44e57f64dd
14 changed files with 138 additions and 12 deletions
|
@ -0,0 +1,17 @@
|
|||
import { connect } from 'react-redux';
|
||||
import ComposerDrawer from '../components/composer_drawer';
|
||||
import { publish } from '../actions/statuses';
|
||||
|
||||
const mapStateToProps = function (state, props) {
|
||||
return {};
|
||||
};
|
||||
|
||||
const mapDispatchToProps = function (dispatch) {
|
||||
return {
|
||||
onSubmit: function (text, in_reply_to_id) {
|
||||
dispatch(publish(text, in_reply_to_id));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ComposerDrawer);
|
Loading…
Add table
Add a link
Reference in a new issue