2017-05-26 10:53:32 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
2017-06-03 01:09:52 +02:00
|
|
|
connect
|
2017-05-26 10:53:32 +02:00
|
|
|
} from 'react-redux'
|
|
|
|
import {
|
2017-06-03 01:09:52 +02:00
|
|
|
doUserEmailDecline
|
|
|
|
} from 'actions/user'
|
|
|
|
import {
|
|
|
|
selectAuthenticationIsPending,
|
|
|
|
selectEmailNewDeclined,
|
|
|
|
selectEmailNewExistingEmail,
|
|
|
|
selectUser,
|
|
|
|
} from 'selectors/user'
|
|
|
|
import Auth from './view'
|
2017-05-26 10:53:32 +02:00
|
|
|
|
2017-06-03 01:09:52 +02:00
|
|
|
const select = (state) => ({
|
|
|
|
isPending: selectAuthenticationIsPending(state),
|
|
|
|
existingEmail: selectEmailNewExistingEmail(state),
|
|
|
|
user: selectUser(state),
|
2017-05-26 10:53:32 +02:00
|
|
|
})
|
|
|
|
|
2017-06-03 01:09:52 +02:00
|
|
|
export default connect(select, null)(Auth)
|