Skip to content

Commit 60dc413

Browse files
committed
Changes Before Merge
1 parent 8875929 commit 60dc413

2 files changed

Lines changed: 29 additions & 18 deletions

File tree

app/components/Applications.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import 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';
311
import DeleteForeverOutlinedIcon from '@material-ui/icons/DeleteForeverOutlined';
412
import { makeStyles } from '@material-ui/core/styles';
513
import { 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
))}

app/components/Occupied.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const Occupied: React.FC = () => {
1414
paper: {
1515
color: theme.palette.text.secondary,
1616
height: 340,
17-
top: 10,
18-
width: '49%',
19-
marginLeft: '.5%',
17+
width: '100%',
2018
background: 'rgb(33, 34, 41)',
2119
boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)',
22-
'&:hover, &.Mui-focusVisible': { background: 'rgb(33, 34, 41)' },
20+
'&:hover, &.Mui-focusVisible': {
21+
backgroundColor: 'rgba(33, 34, 41, 0.75)',
22+
},
2323
},
2424
grid: {
2525
margin: '0 auto',
@@ -51,15 +51,18 @@ const Occupied: React.FC = () => {
5151
gutterBottom
5252
>
5353
Applications
54+
<Typography>Click a Card to Begin!</Typography>
5455
</Typography>
5556
<Modal open={open} onClose={() => setOpen(false)}>
5657
<AddModal setOpen={setOpen} />
5758
</Modal>
5859
<Grid className={classes.grid} container spacing={3}>
60+
<Grid item xs={6}>
61+
<Button className={classes.paper} onClick={() => setOpen(true)}>
62+
<AddCircleOutlineTwoToneIcon className={classes.icon} />
63+
</Button>
64+
</Grid>
5965
<Applications />
60-
<Button className={classes.paper} onClick={() => setOpen(true)}>
61-
<AddCircleOutlineTwoToneIcon className={classes.icon} />
62-
</Button>
6366
</Grid>
6467
</div>
6568
);

0 commit comments

Comments
 (0)