Client: minor refactor (user)
This commit is contained in:
parent
1c570ab320
commit
c8f1b4aebe
@ -2,7 +2,7 @@ import React from 'react'
|
|||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
|
|
||||||
import { logout } from '../../actions/index'
|
import { logout } from '../../actions/user'
|
||||||
|
|
||||||
class Logout extends React.Component {
|
class Logout extends React.Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
@ -4,7 +4,7 @@ import { Helmet } from 'react-helmet'
|
|||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
|
|
||||||
import { deletePicture, uploadPicture } from '../../actions'
|
import { deletePicture, uploadPicture } from '../../actions/user'
|
||||||
import { apiUrl } from '../../utils'
|
import { apiUrl } from '../../utils'
|
||||||
|
|
||||||
function Profile ({ message, onDeletePicture, onUploadPicture, user }) {
|
function Profile ({ message, onDeletePicture, onUploadPicture, user }) {
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
initProfileForm,
|
initProfileForm,
|
||||||
updateProfileFormData,
|
updateProfileFormData,
|
||||||
handleProfileFormSubmit
|
handleProfileFormSubmit
|
||||||
} from '../../actions'
|
} from '../../actions/user'
|
||||||
|
|
||||||
|
|
||||||
class ProfileEdit extends React.Component {
|
class ProfileEdit extends React.Component {
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
emptyForm,
|
emptyForm,
|
||||||
handleFormChange,
|
handleFormChange,
|
||||||
handleUserFormSubmit
|
handleUserFormSubmit
|
||||||
} from '../../actions'
|
} from '../../actions/user'
|
||||||
import { isLoggedIn } from '../../utils'
|
import { isLoggedIn } from '../../utils'
|
||||||
|
|
||||||
class UserForm extends React.Component {
|
class UserForm extends React.Component {
|
||||||
|
@ -10,7 +10,7 @@ import App from './components/App'
|
|||||||
import Root from './components/Root'
|
import Root from './components/Root'
|
||||||
import registerServiceWorker from './registerServiceWorker'
|
import registerServiceWorker from './registerServiceWorker'
|
||||||
import reducers from './reducers'
|
import reducers from './reducers'
|
||||||
import { loadProfile } from './actions'
|
import { loadProfile } from './actions/user'
|
||||||
|
|
||||||
export const history = createBrowserHistory()
|
export const history = createBrowserHistory()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user