11import React , { useContext , useEffect , useState } from 'react' ;
2- import {
3- Button ,
4- Grid ,
5- IconButton ,
6- Modal ,
7- Paper ,
8- Card ,
9- CardHeader ,
10- CardContent ,
11- } from '@material-ui/core' ;
2+ import { Button , Grid , Modal , Card , CardHeader , CardContent , CardActions } from '@material-ui/core' ;
123import DeleteForeverOutlinedIcon from '@material-ui/icons/DeleteForeverOutlined' ;
134import { makeStyles } from '@material-ui/core/styles' ;
145import { DashboardContext } from '../context/DashboardContext' ;
@@ -48,13 +39,19 @@ const Applications = () => {
4839 background : 'rgb(33, 34, 41)' ,
4940 border : '2px solid black' ,
5041 boxShadow : '0 3px 5px 2px rgba(255, 105, 135, .3)' ,
51- marginBottom : theme . spacing ( 1 ) ,
5242 } ,
5343 hover : {
5444 color : 'white' ,
5545 boxShadow : 'none' ,
5646 '&:hover, &.Mui-focusVisible' : { color : 'red' } ,
5747 } ,
48+ btnStyle : {
49+ position : 'relative' ,
50+ top : 50 ,
51+ margin : '0 auto' ,
52+ color : 'rgb(255, 243, 72)' ,
53+ backgroundColor : 'grey' ,
54+ } ,
5855 } ) ) ;
5956
6057 const classes = useStyles ( ) ;
@@ -63,7 +60,11 @@ const Applications = () => {
6360 < >
6461 { applications . map ( ( app : string , i : number | any | string | undefined ) => (
6562 < Grid item xs = { 6 } key = { i } >
66- < Card className = { classes . paper } >
63+ < Card
64+ className = { classes . paper }
65+ variant = "outlined"
66+ onClick = { ( event : React . MouseEvent < HTMLElement > ) => handleClick ( app , i ) }
67+ >
6768 < CardHeader
6869 avatar = {
6970 < Button
@@ -73,6 +74,11 @@ const Applications = () => {
7374 }
7475 > </ CardHeader >
7576 < CardContent > { app } </ CardContent >
77+ < CardActions >
78+ < Button className = { classes . btnStyle } size = "large" >
79+ Click to View
80+ </ Button >
81+ </ CardActions >
7682 </ Card >
7783 </ Grid >
7884 ) ) }
@@ -84,19 +90,3 @@ const Applications = () => {
8490} ;
8591
8692export 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