|
|
@ -37,14 +37,28 @@ const mapStateToProps = state => ({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Dispatch mapping.
|
|
|
|
// Dispatch mapping.
|
|
|
|
const mapDispatchToProps = {
|
|
|
|
const mapDispatchToProps = (dispatch, { intl }) => ({
|
|
|
|
onChange: changeSearch,
|
|
|
|
onChange (value) {
|
|
|
|
onClear: clearSearch,
|
|
|
|
dispatch(changeSearch(value));
|
|
|
|
onClickElefriend: cycleElefriendCompose,
|
|
|
|
},
|
|
|
|
onShow: showSearch,
|
|
|
|
onClear () {
|
|
|
|
onSubmit: submitSearch,
|
|
|
|
dispatch(clearSearch());
|
|
|
|
onOpenSettings: openModal.bind(null, 'SETTINGS', {}),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
onClickElefriend () {
|
|
|
|
|
|
|
|
dispatch(cycleElefriendCompose());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onShow () {
|
|
|
|
|
|
|
|
dispatch(showSearch());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onSubmit () {
|
|
|
|
|
|
|
|
dispatch(submitSearch());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onOpenSettings (e) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
dispatch(openModal('SETTINGS', {}));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// The component.
|
|
|
|
// The component.
|
|
|
|
class Drawer extends React.Component {
|
|
|
|
class Drawer extends React.Component {
|
|
|
|