Skip to content

Commit

Permalink
Added delete icon to expenses list
Browse files Browse the repository at this point in the history
  • Loading branch information
damienteo committed Mar 10, 2019
1 parent f9c8fd6 commit d8742eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ const styles = {
},
};

// const localHost = 'http://localhost:4000'
const localHost = 'http://localhost:4000'
const herokuSite = 'https://my-budget-planner-api.herokuapp.com'

let site = herokuSite;
let site = localHost;

//================================================================================
// Start of Class
Expand Down
14 changes: 12 additions & 2 deletions src/components/texts/ExpenseList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import {
TableCell,
TableHead,
TableRow,
IconButton
} from '@material-ui/core';
import DeleteIcon from '@material-ui/icons/Delete';

const moment = require('moment');

Expand Down Expand Up @@ -56,7 +58,14 @@ class ExpenseList extends React.Component {
</TableCell>
<TableCell align="right">${expense.expense}</TableCell>
<TableCell align="right">{formattedMonth}</TableCell>
</TableRow>
<TableCell align="right">
<IconButton>
<DeleteIcon
color="action"
/>
</IconButton>
</TableCell>
</TableRow >
)
})

Expand Down Expand Up @@ -87,6 +96,7 @@ class ExpenseList extends React.Component {
<TableCell>Reason</TableCell>
<TableCell align="right">Sum</TableCell>
<TableCell align="right">Month</TableCell>
<TableCell align="right"> </TableCell>
</TableRow>
</TableHead>
<TableBody>
Expand All @@ -101,7 +111,7 @@ class ExpenseList extends React.Component {
</DialogActions>
</Dialog>

</React.Fragment>
</React.Fragment >
)
}
}
Expand Down

0 comments on commit d8742eb

Please sign in to comment.