Client: minor refactor (user)

This commit is contained in:
Sam 2018-04-29 17:18:16 +02:00
parent 1c570ab320
commit c8f1b4aebe
6 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import { logout } from '../../actions/index'
import { logout } from '../../actions/user'
class Logout extends React.Component {
componentDidMount() {

View File

@ -4,7 +4,7 @@ import { Helmet } from 'react-helmet'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import { deletePicture, uploadPicture } from '../../actions'
import { deletePicture, uploadPicture } from '../../actions/user'
import { apiUrl } from '../../utils'
function Profile ({ message, onDeletePicture, onUploadPicture, user }) {

View File

@ -6,7 +6,7 @@ import {
initProfileForm,
updateProfileFormData,
handleProfileFormSubmit
} from '../../actions'
} from '../../actions/user'
class ProfileEdit extends React.Component {

View File

@ -7,7 +7,7 @@ import {
emptyForm,
handleFormChange,
handleUserFormSubmit
} from '../../actions'
} from '../../actions/user'
import { isLoggedIn } from '../../utils'
class UserForm extends React.Component {

View File

@ -10,7 +10,7 @@ import App from './components/App'
import Root from './components/Root'
import registerServiceWorker from './registerServiceWorker'
import reducers from './reducers'
import { loadProfile } from './actions'
import { loadProfile } from './actions/user'
export const history = createBrowserHistory()