Skip to content
Snippets Groups Projects
Commit 889c0bb2 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix: fix component-login issues

parent 8702ed0b
No related branches found
No related tags found
2 merge requests!196S25 - EiC submit revision,!189S25
......@@ -3,10 +3,10 @@ import { get } from 'lodash'
import { connect } from 'react-redux'
import styled, { css } from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
import { actions } from 'pubsweet-client'
import { withJournal } from 'xpub-journal'
import { withRouter } from 'react-router-dom'
import { compose, withHandlers } from 'recompose'
import { logoutUser } from 'pubsweet-component-login/actions'
import {
Logo,
AppBar,
......@@ -70,7 +70,7 @@ export default compose(
canCreateDraft: !userNotConfirmed(state),
}),
(dispatch, { history }) => ({
logout: () => dispatch(actions.logoutUser()),
logout: () => dispatch(logoutUser()),
createDraft: () => dispatch(createDraftSubmission(history)),
}),
),
......
[
"pubsweet-component-login",
"pubsweet-component-wizard",
"pubsweet-component-modal",
"pubsweet-components-faraday",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment