File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,27 +76,27 @@ const Applications = () => {
7676
7777 return (
7878 < >
79- { applications . map ( ( app : string , i : number | any | string | undefined ) => (
79+ { applications . map ( ( app : string [ ] , i : number | any | string | undefined ) => (
8080 < Grid item lg = { 4 } md = { 6 } sm = { 12 } key = { i } >
8181 < div id = "card-hover" >
8282 < Card
8383 className = { classes . paper }
8484 variant = "outlined"
85- onClick = { ( event : React . MouseEvent < HTMLElement > ) => handleClick ( app , i ) }
85+ onClick = { ( event : React . MouseEvent < HTMLElement > ) => handleClick ( app [ 0 ] , i ) }
8686 >
8787 < CardHeader
8888 avatar = {
8989 < IconButton
9090 className = { classes . hover }
9191 aria-label = "Delete"
92- onClick = { ( event : React . MouseEvent < HTMLElement > ) => confirmDelete ( app , i ) }
92+ onClick = { ( event : React . MouseEvent < HTMLElement > ) => confirmDelete ( app [ 0 ] , i ) }
9393 >
9494 < DeleteForeverOutlinedIcon />
9595 </ IconButton >
9696 }
9797 > </ CardHeader >
9898 < CardContent >
99- < Typography className = { classes . fontStyles } > { app } </ Typography >
99+ < Typography className = { classes . fontStyles } > { app [ 0 ] } </ Typography >
100100 </ CardContent >
101101 </ Card >
102102 </ div >
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const DashboardContextProvider = ({ children }: Props) => {
3131 */
3232 const getApplications = ( ) => {
3333 const result = ipcRenderer . sendSync ( 'getApps' ) ;
34+ console . log ( 'result' , result )
3435 setApplications ( result ) ;
3536 } ;
3637
You can’t perform that action at this time.
0 commit comments