11import React , { useContext , useEffect , useState } from 'react' ;
2- import { Button , Grid , Modal , Card , CardHeader , CardContent , CardActions } from '@material-ui/core' ;
2+ import {
3+ IconButton ,
4+ Grid ,
5+ Modal ,
6+ Card ,
7+ CardHeader ,
8+ CardContent ,
9+ Typography ,
10+ } from '@material-ui/core' ;
311import DeleteForeverOutlinedIcon from '@material-ui/icons/DeleteForeverOutlined' ;
412import { makeStyles } from '@material-ui/core/styles' ;
513import { DashboardContext } from '../context/DashboardContext' ;
@@ -39,11 +47,11 @@ const Applications = () => {
3947 background : 'rgb(33, 34, 41)' ,
4048 border : '2px solid black' ,
4149 boxShadow : '0 3px 5px 2px rgba(255, 105, 135, .3)' ,
50+ '&:hover, &.Mui-focusVisible' : { background : 'rgba(33, 34, 41, 0.75)' } ,
4251 } ,
4352 hover : {
4453 color : 'white' ,
4554 boxShadow : 'none' ,
46- '&:hover, &.Mui-focusVisible' : { color : 'red' } ,
4755 } ,
4856 btnStyle : {
4957 position : 'relative' ,
@@ -67,18 +75,18 @@ const Applications = () => {
6775 >
6876 < CardHeader
6977 avatar = {
70- < Button
78+ < IconButton
7179 className = { classes . hover }
72- startIcon = { < DeleteForeverOutlinedIcon /> }
73- > </ Button >
80+ aria-label = "Delete"
81+ onClick = { ( event : React . MouseEvent < HTMLElement > ) => confirmDelete ( app , i ) }
82+ >
83+ < DeleteForeverOutlinedIcon />
84+ </ IconButton >
7485 }
7586 > </ CardHeader >
76- < CardContent > { app } </ CardContent >
77- < CardActions >
78- < Button className = { classes . btnStyle } size = "large" >
79- Click to View
80- </ Button >
81- </ CardActions >
87+ < CardContent >
88+ < Typography variant = "h2" > { app } </ Typography >
89+ </ CardContent >
8290 </ Card >
8391 </ Grid >
8492 ) ) }
0 commit comments