From c1895c3a65547c2491adf88f3a9c8d802dccaf81 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 28 Aug 2016 10:59:47 -0700 Subject: [PATCH] Only show layout user menu if logged in --- frontend/components/Layout/Layout.js | 44 +++++++++++++++------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/frontend/components/Layout/Layout.js b/frontend/components/Layout/Layout.js index adc2d510..6bec7cc9 100644 --- a/frontend/components/Layout/Layout.js +++ b/frontend/components/Layout/Layout.js @@ -75,30 +75,34 @@ class Layout extends React.Component { - - { this.props.actions } - - { this.props.search && ( + { user.user && ( -
+ { this.props.actions } + + { this.props.search && ( + +
+ Search +
+
+ ) } + } > - Search -
+ Settings + Logout +
) } - } - > - Settings - Logout -