1
1
import React , { useContext , useState } from 'react' ;
2
- import { useNavigate } from 'react-router-dom' ;
2
+ import { useNavigate } from 'react-router-dom' ;
3
3
import { ApplicationContext } from '../context/ApplicationContext' ;
4
4
import { DashboardContext } from '../context/DashboardContext' ;
5
5
import '../stylesheets/Header.scss' ;
@@ -37,7 +37,7 @@ const Header: React.FC<HeaderProps> = React.memo(({ app, service, setLive, live
37
37
left : 0 ,
38
38
behavior : 'smooth' ,
39
39
} ) ;
40
-
40
+
41
41
/** From Version 5.2 Team:
42
42
* Can't remove ! in Lines 45 and 49 as they are strictNullChecks
43
43
*/
@@ -53,7 +53,7 @@ const Header: React.FC<HeaderProps> = React.memo(({ app, service, setLive, live
53
53
54
54
const handleServices = ( ) => {
55
55
const joinedServices = selectedServices . join ( ' ' ) ;
56
- navigate ( joinedServices ) ;
56
+ navigate ( `/applications/ ${ app } / ${ joinedServices } ` ) ;
57
57
setLive ( false ) ;
58
58
} ;
59
59
@@ -65,7 +65,9 @@ const Header: React.FC<HeaderProps> = React.memo(({ app, service, setLive, live
65
65
< h1 className = "microserviceTitle" > { app } </ h1 >
66
66
67
67
{ selectModal && < div className = "filter" onClick = { dropdownClickHandler } > </ div > }
68
- < div > < span > select services to display</ span > </ div >
68
+ < div >
69
+ < span > select services to display</ span >
70
+ </ div >
69
71
< div className = { selectModal ? 'dropdown active' : 'dropdown' } >
70
72
< div
71
73
className = { selectModal ? 'select disabled' : 'select' }
@@ -85,7 +87,8 @@ const Header: React.FC<HeaderProps> = React.memo(({ app, service, setLive, live
85
87
value = { `${ microservice } ` }
86
88
id = { `${ microservice } ` }
87
89
name = { `${ microservice } ` }
88
- onChange = { handleCheckbox } />
90
+ onChange = { handleCheckbox }
91
+ />
89
92
</ label >
90
93
) ;
91
94
} ) }
0 commit comments