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 = ({ ...@@ -49,13 +49,15 @@ const App = ({
links = showLinks links = showLinks
? [ ? [
<Action <Action
active={(window.location.pathname === submitLink).toString()} active={window.location.pathname === submitLink ? 'active' : null}
to={submitLink} to={submitLink}
> >
Summary Info Summary Info
</Action>, </Action>,
<Action <Action
active={(window.location.pathname === manuscriptLink).toString()} active={
window.location.pathname === manuscriptLink ? 'active' : null
}
to={manuscriptLink} to={manuscriptLink}
> >
Manuscript Manuscript
...@@ -67,7 +69,7 @@ const App = ({ ...@@ -67,7 +69,7 @@ const App = ({
if (authorized) { if (authorized) {
links.push( links.push(
<Action <Action
active={(window.location.pathname === '/teams').toString()} active={window.location.pathname === '/teams' ? 'active' : null}
to="/teams" to="/teams"
> >
Team Manager 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