lbry-desktop/ui/js/page/auth/index.jsx
2017-06-07 12:11:47 -04:00

25 lines
560 B
JavaScript

import React from 'react'
import {
connect
} from 'react-redux'
import {
doUserEmailDecline
} from 'actions/user'
import {
selectAuthenticationIsPending,
selectEmailNewDeclined,
selectUser,
} from 'selectors/user'
import AuthPage from './view'
const select = (state) => ({
isPending: selectAuthenticationIsPending(state),
isEmailDeclined: selectEmailNewDeclined(state),
user: selectUser(state),
})
const perform = (dispatch) => ({
userEmailDecline: () => dispatch(doUserEmailDecline())
})
export default connect(select, perform)(AuthPage)