From c8f1b4aebed37b7fa00f38299db5834eefdb7ef3 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 29 Apr 2018 17:18:16 +0200 Subject: [PATCH] Client: minor refactor (user) --- mpwo_client/src/actions/{index.js => user.js} | 0 mpwo_client/src/components/User/Logout.jsx | 2 +- mpwo_client/src/components/User/Profile.jsx | 2 +- mpwo_client/src/components/User/ProfileEdit.jsx | 2 +- mpwo_client/src/components/User/UserForm.jsx | 2 +- mpwo_client/src/index.js | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename mpwo_client/src/actions/{index.js => user.js} (100%) diff --git a/mpwo_client/src/actions/index.js b/mpwo_client/src/actions/user.js similarity index 100% rename from mpwo_client/src/actions/index.js rename to mpwo_client/src/actions/user.js diff --git a/mpwo_client/src/components/User/Logout.jsx b/mpwo_client/src/components/User/Logout.jsx index e79eea4d..6a4185db 100644 --- a/mpwo_client/src/components/User/Logout.jsx +++ b/mpwo_client/src/components/User/Logout.jsx @@ -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() { diff --git a/mpwo_client/src/components/User/Profile.jsx b/mpwo_client/src/components/User/Profile.jsx index ce225889..2456d979 100644 --- a/mpwo_client/src/components/User/Profile.jsx +++ b/mpwo_client/src/components/User/Profile.jsx @@ -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 }) { diff --git a/mpwo_client/src/components/User/ProfileEdit.jsx b/mpwo_client/src/components/User/ProfileEdit.jsx index 3cb92275..9f1bdd3a 100644 --- a/mpwo_client/src/components/User/ProfileEdit.jsx +++ b/mpwo_client/src/components/User/ProfileEdit.jsx @@ -6,7 +6,7 @@ import { initProfileForm, updateProfileFormData, handleProfileFormSubmit -} from '../../actions' +} from '../../actions/user' class ProfileEdit extends React.Component { diff --git a/mpwo_client/src/components/User/UserForm.jsx b/mpwo_client/src/components/User/UserForm.jsx index 6c4bb212..b91695ee 100644 --- a/mpwo_client/src/components/User/UserForm.jsx +++ b/mpwo_client/src/components/User/UserForm.jsx @@ -7,7 +7,7 @@ import { emptyForm, handleFormChange, handleUserFormSubmit -} from '../../actions' +} from '../../actions/user' import { isLoggedIn } from '../../utils' class UserForm extends React.Component { diff --git a/mpwo_client/src/index.js b/mpwo_client/src/index.js index f9cbdc4a..0809db21 100644 --- a/mpwo_client/src/index.js +++ b/mpwo_client/src/index.js @@ -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()