lbry-desktop/src/renderer/component/button/index.js

10 lines
275 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doNavigate } from 'redux/actions/navigation';
2018-03-26 23:32:43 +02:00
import Button from './view';
2017-04-07 07:15:22 +02:00
2017-08-20 23:42:00 +02:00
const perform = dispatch => ({
2017-09-17 20:26:55 +02:00
doNavigate: (path, params) => dispatch(doNavigate(path, params)),
2017-08-20 23:42:00 +02:00
});
2018-03-26 23:32:43 +02:00
export default connect(null, perform)(Button);