From 1d24f91806ae7442b3bf60fcef8893fc3bccd51d Mon Sep 17 00:00:00 2001 From: mkrause Date: Fri, 2 Jun 2017 21:12:26 +0200 Subject: [PATCH] (#221) Inline the login button. --- .../components/header/components/Header.jsx | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/client/components/header/components/Header.jsx b/src/client/components/header/components/Header.jsx index a00c883..5faa560 100644 --- a/src/client/components/header/components/Header.jsx +++ b/src/client/components/header/components/Header.jsx @@ -15,25 +15,17 @@ const mapStateToProps = state => ({ hasAuth: selectors.hasToken(state) }) -const LoginButton = ({ onLogin }) => ( - -) - -LoginButton.propTypes = { onLogin: PropTypes.func.isRequired } - export const DumbHeader = ({ hasAuth, history }) => ( {hasAuth ? - : { + : { history.push('/login') }} />}