From c5f576b326dc95fb2aaee6ddf93552111ec979da Mon Sep 17 00:00:00 2001
From: Giannis Kopanas <jkopanas@gmail.com>
Date: Wed, 1 Aug 2018 17:46:10 +0300
Subject: [PATCH] fix(actions): active on css prop

---
 app/components/App.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/components/App.js b/app/components/App.js
index ca609924bd..54590c6a2a 100644
--- a/app/components/App.js
+++ b/app/components/App.js
@@ -49,13 +49,15 @@ const App = ({
     links = showLinks
       ? [
           <Action
-            active={(window.location.pathname === submitLink).toString()}
+            active={window.location.pathname === submitLink ? 'active' : null}
             to={submitLink}
           >
             Summary Info
           </Action>,
           <Action
-            active={(window.location.pathname === manuscriptLink).toString()}
+            active={
+              window.location.pathname === manuscriptLink ? 'active' : null
+            }
             to={manuscriptLink}
           >
             Manuscript
@@ -67,7 +69,7 @@ const App = ({
   if (authorized) {
     links.push(
       <Action
-        active={(window.location.pathname === '/teams').toString()}
+        active={window.location.pathname === '/teams' ? 'active' : null}
         to="/teams"
       >
         Team Manager
-- 
GitLab