Commit c5f576b3 authored by Giannis Kopanas's avatar Giannis Kopanas

fix(actions): active on css prop

parent 61566470
Pipeline #8340 passed with stages
in 3 minutes and 34 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment