Skip to content
Snippets Groups Projects
Commit c5f576b3 authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

fix(actions): active on css prop

parent 61566470
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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