File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import {
1616// import { matchPath } from 'react-router-dom';
1717
1818export const Menu : React . FC = ( ) => {
19-
2019 const stackComponentsTypes : any [ ] = useSelector (
2120 stackComponentSelectors . stackComponentTypes ,
2221 ) ;
@@ -39,9 +38,7 @@ export const Menu: React.FC = () => {
3938 />
4039 < MenuItem
4140 id = "runs"
42- Icon = { ( ) => (
43- < icons . run color = { iconColors . white } size = { iconSizes . md } />
44- ) }
41+ Icon = { ( ) => < icons . run color = { iconColors . white } size = { iconSizes . md } /> }
4542 to = { routePaths . pipelines . allRuns ( selectedWorkspace ) }
4643 isActive = { ( ) => window . location . href ?. includes ( 'all-runs' ) }
4744 text = { 'Runs' }
@@ -67,7 +64,10 @@ export const Menu: React.FC = () => {
6764 innerItem = { window . location . href ?. includes ( 'stacks' ) }
6865 // to={routePaths.stacks.base}
6966 text = { translate ( 'menu.stacks.text' ) }
70- isActive = { ( ) => window . location . href ?. includes ( 'stacks' ) }
67+ isActive = { ( ) =>
68+ window . location . href ?. includes ( 'stacks' ) &&
69+ ! window . location . href ?. includes ( 'components' )
70+ }
7171 to = { routePaths . stacks . list ( selectedWorkspace ) }
7272 />
7373
@@ -95,7 +95,6 @@ export const Menu: React.FC = () => {
9595 ) ;
9696} ;
9797
98-
9998// {locationPath.includes('components') &&
10099// stackComponentsTypes?.map((item: any) => (
101100// <MenuItem
You can’t perform that action at this time.
0 commit comments