lbry-desktop/ui/component/router/index.js

12 lines
365 B
JavaScript
Raw Normal View History

2019-07-17 22:49:06 +02:00
import { connect } from 'react-redux';
2019-09-26 18:07:11 +02:00
import { selectUserVerifiedEmail } from 'lbryinc';
2019-07-23 01:43:30 +02:00
import { selectScrollStartingPosition } from 'redux/selectors/app';
2018-04-18 06:03:01 +02:00
import Router from './view';
2019-07-17 22:49:06 +02:00
const select = state => ({
2019-07-23 01:43:30 +02:00
currentScroll: selectScrollStartingPosition(state),
2019-09-26 18:07:11 +02:00
isAuthenticated: selectUserVerifiedEmail(state),
2019-07-17 22:49:06 +02:00
});
export default connect(select)(Router);