11import React , { useContext , useEffect , useState } from 'react' ;
2- import { Grid , IconButton , Modal , Paper } from '@material-ui/core' ;
2+ import {
3+ Button ,
4+ Grid ,
5+ IconButton ,
6+ Modal ,
7+ Paper ,
8+ Card ,
9+ CardHeader ,
10+ CardContent ,
11+ } from '@material-ui/core' ;
312import DeleteForeverOutlinedIcon from '@material-ui/icons/DeleteForeverOutlined' ;
413import { makeStyles } from '@material-ui/core/styles' ;
514import { DashboardContext } from '../context/DashboardContext' ;
@@ -42,11 +51,7 @@ const Applications = () => {
4251 marginBottom : theme . spacing ( 1 ) ,
4352 } ,
4453 hover : {
45- position : 'relative' ,
46- top : '5%' ,
47- right : '5%' ,
48- height : 120 ,
49- width : 120 ,
54+ color : 'white' ,
5055 boxShadow : 'none' ,
5156 '&:hover, &.Mui-focusVisible' : { color : 'red' } ,
5257 } ,
@@ -58,21 +63,17 @@ const Applications = () => {
5863 < >
5964 { applications . map ( ( app : string , i : number | any | string | undefined ) => (
6065 < Grid item xs = { 6 } key = { i } >
61- < Paper
62- className = { classes . paper }
63- id = { i }
64- key = { i }
65- onClick = { ( event : React . MouseEvent < HTMLElement > ) => handleClick ( app , i ) }
66- >
67- { app }
68- < IconButton
69- aria-label = "Delete"
70- onClick = { ( event : React . MouseEvent < HTMLElement > ) => confirmDelete ( app , i ) }
71- color = "primary"
72- >
73- < DeleteForeverOutlinedIcon className = { classes . hover } />
74- </ IconButton >
75- </ Paper >
66+ < Card className = { classes . paper } >
67+ < CardHeader
68+ avatar = {
69+ < Button
70+ className = { classes . hover }
71+ startIcon = { < DeleteForeverOutlinedIcon /> }
72+ > </ Button >
73+ }
74+ > </ CardHeader >
75+ < CardContent > { app } </ CardContent >
76+ </ Card >
7677 </ Grid >
7778 ) ) }
7879 < Modal open = { open } onClose = { ( ) => setOpen ( false ) } >
@@ -83,3 +84,19 @@ const Applications = () => {
8384} ;
8485
8586export default Applications ;
87+
88+ // <IconButton
89+ // className={classes.btnStyle}
90+ // aria-label="Delete"
91+ // onClick={(event: React.MouseEvent<HTMLElement>) => confirmDelete(app, i)}
92+ // color="primary"
93+ // >
94+ // <DeleteForeverOutlinedIcon className={classes.hover} />
95+ // </IconButton>
96+
97+ // <Paper
98+ // className={classes.paper}
99+ // id={i}
100+ // key={i}
101+ // onClick={(event: React.MouseEvent<HTMLElement>) => handleClick(app, i)}
102+ // >
0 commit comments