From 9f40714d0a2ed25ef3e654a20b6a301fd9b4dc45 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Mon, 19 Aug 2019 17:06:16 +0530 Subject: [PATCH] fix: remove avatar from nav --- .../components/Header/components/SignedIn.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/client/src/components/Header/components/SignedIn.js b/client/src/components/Header/components/SignedIn.js index 66efeea117..9c4aa6e45b 100644 --- a/client/src/components/Header/components/SignedIn.js +++ b/client/src/components/Header/components/SignedIn.js @@ -1,22 +1,11 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'gatsby'; -import { connect } from 'react-redux'; -import { createSelector } from 'reselect'; -import { userSelector } from '../../../redux'; - -const mapStateToProps = createSelector( - userSelector, - ({ picture }) => ({ - picture - }) -); - -function SignedIn({ picture }) { +function SignedIn() { return ( - - + + Settings ); } @@ -26,4 +15,4 @@ SignedIn.propTypes = { picture: PropTypes.string }; -export default connect(mapStateToProps)(SignedIn); +export default SignedIn;