cspace-ui
Version:
CollectionSpace user interface for browsers
27 lines (22 loc) • 614 B
JavaScript
import { connect } from 'react-redux';
import AuthorizedPage from '../../components/pages/AuthorizedPage';
import { receiveAuthCode } from '../../actions/login';
import {
getLoginError,
getLoginLandingPath,
isLoginPending,
isLoginSuccess,
} from '../../reducers';
const mapStateToProps = (state) => ({
isLoginPending: isLoginPending(state),
isLoginSuccess: isLoginSuccess(state),
landingPath: getLoginLandingPath(state),
loginError: getLoginError(state),
});
const mapDispatchToProps = {
receiveAuthCode,
};
export default connect(
mapStateToProps,
mapDispatchToProps,
)(AuthorizedPage);