@@ -19,13 +19,13 @@ import {
1919import useAuthContext from '@/js/hooks/useAuthContext'
2020import usePermissions from '@/js/hooks/usePermissions'
2121
22+ import { getApplicationConfig , getUmmVersionsConfig } from 'sharedUtils/getConfig'
23+
2224import Button from '../Button/Button'
2325import ErrorBoundary from '../ErrorBoundary/ErrorBoundary'
2426import PrimaryNavigation from '../PrimaryNavigation/PrimaryNavigation'
2527import AboutModal from '../AboutModal/AboutModal'
2628
27- import { getApplicationConfig , getUmmVersionsConfig } from '../../../../../sharedUtils/getConfig'
28-
2929import './Layout.scss'
3030
3131/*
@@ -48,7 +48,8 @@ const Layout = ({ className, displayNav }) => {
4848 ummVis
4949 } = getUmmVersionsConfig ( )
5050
51- const { env, displayProdWarning } = getApplicationConfig ( )
51+ // Remove showVisualizations in MMT-4028
52+ const { env, displayProdWarning, showVisualizations } = getApplicationConfig ( )
5253
5354 const { user } = useAuthContext ( )
5455
@@ -190,7 +191,8 @@ const Layout = ({ className, displayNav }) => {
190191 }
191192 ]
192193 } ,
193- {
194+ // Remove in MMT-4028
195+ ...( ( showVisualizations === 'true' ) ? [ {
194196 title : 'Visualizations' ,
195197 version : `v${ ummVis } ` ,
196198 children : [
@@ -203,7 +205,7 @@ const Layout = ({ className, displayNav }) => {
203205 title : 'Drafts'
204206 }
205207 ]
206- } ,
208+ } ] : [ ] ) ,
207209 {
208210 title : 'Order Options' ,
209211 children : [
0 commit comments