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