File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ const Applications = () => {
2323 } ;
2424
2525 // Handle clicks on Application cards
26- const handleClick = ( app : string , i : number ) => {
26+ const handleClick = ( selectedApp : string , i : number ) => {
2727 setIndex ( i ) ;
28- setApp ( app ) ;
28+ setApp ( selectedApp ) ;
29+ console . log ( 'handle' , selectedApp )
2930 setOpen ( true ) ;
3031 } ;
3132
@@ -56,18 +57,18 @@ const Applications = () => {
5657
5758 return (
5859 < >
59- { applications . map ( ( app : string , i : number | any | string | undefined ) => (
60+ { applications . map ( ( app : string [ ] , i : number | any | string | undefined ) => (
6061 < Grid item xs = { 6 } key = { i } >
6162 < Paper
6263 className = { classes . paper }
6364 id = { i }
6465 key = { i }
65- onClick = { ( event : React . MouseEvent < HTMLElement > ) => handleClick ( app , i ) }
66+ onClick = { ( event : React . MouseEvent < HTMLElement > ) => handleClick ( app [ 0 ] , i ) }
6667 >
67- { app }
68+ { app [ 0 ] }
6869 < IconButton
6970 aria-label = "Delete"
70- onClick = { ( event : React . MouseEvent < HTMLElement > ) => confirmDelete ( app , i ) }
71+ onClick = { ( event : React . MouseEvent < HTMLElement > ) => confirmDelete ( app [ 0 ] , i ) }
7172 color = "primary"
7273 >
7374 < DeleteForeverOutlinedIcon className = { classes . hover } />
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { ApplicationContext } from '../context/ApplicationContext';
55import '../stylesheets/Header.scss' ;
66
77export interface HeaderProps {
8- app : string ;
8+ app : string [ ] ;
99 service : string ;
1010 live : boolean ;
1111 setLive : React . Dispatch < React . SetStateAction < boolean > > ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import RouteTrace from '../charts/RouteTrace';
1818import '../stylesheets/GraphsContainer.scss' ;
1919
2020export interface Params {
21- app : string ;
21+ app : any ;
2222 service : string ;
2323}
2424
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ select {
3939 & :first-of-type {
4040 position : absolute ;
4141 top : 25px ;
42- left : 50 px ;
42+ left : 130 px ;
4343 background-color : transparent ;
4444 border : 2px solid $sidebarblue ;
4545 color : $sidebarblue ;
You can’t perform that action at this time.
0 commit comments