Commit c5453ab8 authored by Giannis Kopanas's avatar Giannis Kopanas

Merge branch 'fix-links-app-active' into 'master'

fix(actions): active on css prop

See merge request !236
parents 61566470 c5f576b3
Pipeline #8341 passed with stages
in 5 minutes and 14 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