From 330c5cec564d9a30387616414fcf2713c4a77591 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 27 Sep 2018 14:45:13 +0200 Subject: [PATCH] ProfileSheet Refactoring --- README.md | 2 +- client/src/components/{UserUpdate.js => ProfileSheet.js} | 4 ++-- client/src/components/UserTabs.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename client/src/components/{UserUpdate.js => ProfileSheet.js} (99%) diff --git a/README.md b/README.md index a8790edfb..5650f6db0 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ App.js | | | | | |- UserTabs | | | | -| | | |- Tab 1 - UserUpdate +| | | |- Tab 1 - ProfileSheet | | | | | | | |- Tab 2 - ManageImages | | diff --git a/client/src/components/UserUpdate.js b/client/src/components/ProfileSheet.js similarity index 99% rename from client/src/components/UserUpdate.js rename to client/src/components/ProfileSheet.js index a3c2f2143..20510a91b 100644 --- a/client/src/components/UserUpdate.js +++ b/client/src/components/ProfileSheet.js @@ -62,7 +62,7 @@ const styles = theme => ({ } }) -class UserUpdate extends Component { +class ProfileSheet extends Component { constructor (props) { super(props) @@ -467,4 +467,4 @@ export default compose( graphql(getRolesQuery, {name: 'getRolesQuery'}), graphql(updateUserMutation, {name: 'updateUserMutation'}), withStyles(styles) -)(UserUpdate) // This technique binds more than one query to a single component. +)(ProfileSheet) // This technique binds more than one query to a single component. diff --git a/client/src/components/UserTabs.js b/client/src/components/UserTabs.js index 488642607..09ddf2fc5 100644 --- a/client/src/components/UserTabs.js +++ b/client/src/components/UserTabs.js @@ -11,7 +11,7 @@ import Typography from '@material-ui/core/Typography'; // Components -import UserUpdate from './UserUpdate'; +import ProfileSheet from './ProfileSheet'; import UserImages from './UserImages'; import YourReferrer from './YourReferrer'; @@ -66,7 +66,7 @@ class UserTabs extends React.Component { } /> - {value === 0 && } + {value === 0 && } {value === 1 && } {value === 2 && }