blob: c9517a2d91bd3293a1f10ae3c08855ea83d06567 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { EmptyData } from 'ba-components';
import { Toolbar, Typography, Table, TableCell, TableHead, TableRow, Paper } from '@material-ui/core';
const styles = theme => ({
root: {
width: '100%',
marginTop: theme.spacing(3),
overflowX: 'auto',
},
table: {
minWidth: 700,
},
});
function EmptyTable(props) {
const { classes } = props;
return (
<Paper className={classes.root}>
<Toolbar>
<div className={classes.title}>
<Typography variant="h6">Nutrition</Typography>
</div>
</Toolbar>
<Table className={classes.table}>
<TableHead>
<TableRow>
<TableCell>Dessert (100g serving)</TableCell>
<TableCell align="right">Calories</TableCell>
<TableCell align="right">Fat (g)</TableCell>
<TableCell align="right">Carbs (g)</TableCell>
<TableCell align="right">Protein (g)</TableCell>
</TableRow>
</TableHead>
</Table>
<EmptyData />
</Paper>
);
}
EmptyTable.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(styles)(EmptyTable);
|