Commit 35b975ba authored by Andrey Azov's avatar Andrey Azov
Browse files

Hide meganav for the Help app; but show it for the About app

parent aea3b232
Pipeline #268853 passed with stages
in 6 minutes and 57 seconds
......@@ -16,7 +16,7 @@
import React, { useEffect, useState, useRef } from 'react';
import classNames from 'classnames';
import { useNavigate } from 'react-router-dom';
import { useNavigate, useLocation } from 'react-router-dom';
import { isEnvironment, Environment } from 'src/shared/helpers/environment';
import useHelpAppAnalytics from '../../hooks/useHelpAppAnalytics';
......@@ -41,9 +41,13 @@ const HelpMenu = (props: Props) => {
const [submenuItems, setSubmenuItems] = useState<MenuItem[] | null>(null);
const clickedMenuRef = useRef<number | null>(null);
// the two lines below are temporary, while we are hiding the meganav menu for the Help app
const location = useLocation();
const isHelpApp = location.pathname.startsWith('/help');
const { trackTopLevelMenu } = useHelpAppAnalytics();
if (isEnvironment([Environment.PRODUCTION])) {
if (isEnvironment([Environment.PRODUCTION]) && isHelpApp) {
return (
<div className={styles.helpMenu}>
<div className={styles.menuBar}>Overview</div>
......
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