Skip to content

Commit 34afc90

Browse files
committed
Add title to the tables page
1 parent eb90d5c commit 34afc90

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

src/pages/tables/Tables.js

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import { Grid } from '@material-ui/core';
33
import MUIDataTable from "mui-datatables";
44

5+
import PageTitle from '../../components/PageTitle';
56
import Widget from '../../components/Widget';
67
import Table from '../dashboard/components/Table/Table';
78
import mock from '../dashboard/mock';
@@ -27,23 +28,26 @@ const datatableData = [
2728
];
2829

2930
const Tables = props => (
30-
<Grid container spacing={32}>
31-
<Grid item xs={12}>
32-
<MUIDataTable
33-
title="Employee List"
34-
data={datatableData}
35-
columns={["Name", "Company", "City", "State"]}
36-
options={{
37-
filterType: 'checkbox',
38-
}}
39-
/>
31+
<React.Fragment>
32+
<PageTitle title="Tables" />
33+
<Grid container spacing={32}>
34+
<Grid item xs={12}>
35+
<MUIDataTable
36+
title="Employee List"
37+
data={datatableData}
38+
columns={["Name", "Company", "City", "State"]}
39+
options={{
40+
filterType: 'checkbox',
41+
}}
42+
/>
43+
</Grid>
44+
<Grid item xs={12}>
45+
<Widget title="Material-UI Table" upperTitle noBodyPadding>
46+
<Table data={mock.table} />
47+
</Widget>
48+
</Grid>
4049
</Grid>
41-
<Grid item xs={12}>
42-
<Widget title="Material-UI Table" upperTitle noBodyPadding>
43-
<Table data={mock.table} />
44-
</Widget>
45-
</Grid>
46-
</Grid>
50+
</React.Fragment>
4751
);
4852

4953
export default Tables;

0 commit comments

Comments
 (0)