Skip to content
Snippets Groups Projects
Commit 548e6131 authored by esikkala's avatar esikkala
Browse files

Fix mobile menu instructions link

parent d9df3cfa
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,8 @@ const TopBar = props => {
}
const renderMobileMenu = perspectives => {
const { infoDropdown } = props.layoutConfig.topBar
const { topBar } = props.layoutConfig
const { infoDropdown } = topBar
return (
<Menu
anchorEl={mobileMoreAnchorEl}
......@@ -261,15 +262,14 @@ const TopBar = props => {
label: intl.get('topBar.instructions')
})}
{!topBar.externalInstructions &&
<Button
className={classes.appBarButton}
component={AdapterNavLink}
<MenuItem
key='instructions'
component={AdapterLink}
to={`${props.rootUrl}/instructions`}
isActive={(match, location) => location.pathname.startsWith(`${props.rootUrl}/instructions`)}
activeClassName={classes.appBarButtonActive}
onClick={handleMobileMenuClose}
>
{intl.get('topBar.instructions')}
</Button>}
{intl.get('topBar.instructions').toUpperCase()}
</MenuItem>}
</Menu>
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment