From 20eb0989664807fa7044e1fd2283aaf2a463e601 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 14 Oct 2018 08:17:44 +0200 Subject: [PATCH] Access to User Profile enabled --- client/src/components/NavBar.js | 9 +++++++++ client/src/components/ProfileSheet.js | 2 +- client/src/components/UserList.js | 4 ++-- client/src/components/UserProfile.js | 4 ++-- client/src/components/UserSearch.js | 4 ++-- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/client/src/components/NavBar.js b/client/src/components/NavBar.js index 7d68926a4..a5ff91754 100644 --- a/client/src/components/NavBar.js +++ b/client/src/components/NavBar.js @@ -12,9 +12,11 @@ import BrowseIcon from '@material-ui/icons/ImportContacts' import SearchIcon from '@material-ui/icons/Search' import ContactIcon from '@material-ui/icons/ContactMail' import AboutIcon from '@material-ui/icons/FormatShapes' +import UserIcon from '@material-ui/icons/Person' import { Link } from 'react-router-dom' +const UserLink = props => const AboutLink = props => const ContactLink = props => const SearchLink = props => @@ -97,6 +99,13 @@ class NavBar extends Component { component={AboutLink}> + + + diff --git a/client/src/components/ProfileSheet.js b/client/src/components/ProfileSheet.js index 82ab1d5b7..3c6de0859 100644 --- a/client/src/components/ProfileSheet.js +++ b/client/src/components/ProfileSheet.js @@ -244,7 +244,7 @@ class ProfileSheet extends Component { let authId = localStorage.getItem('authId') let userData = localStorage.getItem('loggedInUser') - if (userData === 'undefined') { return } + if (userData === 'undefined' || userData === null) { return } let user = JSON.parse(userData) this.defaultValuesSet = true diff --git a/client/src/components/UserList.js b/client/src/components/UserList.js index 4d9935037..4e5751836 100644 --- a/client/src/components/UserList.js +++ b/client/src/components/UserList.js @@ -113,7 +113,7 @@ class UserList extends Component { /> - + {user.alias} @@ -136,7 +136,7 @@ class UserList extends Component { - + User Profile