Skip to content

Commit aefc125

Browse files
authored
Merge pull request #303 from CodeForPhilly/bugfix/issue293-blank360view
Bugfix: resolves issue #293
2 parents f49da25 + 4d56190 commit aefc125

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

src/client/src/pages/DataView360/View/components/DataTableHeader.js

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,24 @@ import React from 'react';
22
import {
33
Typography,
44
} from '@material-ui/core';
5-
import { makeStyles, withStyles } from '@material-ui/core/styles';
65
import Grid from "@material-ui/core/Grid";
76

87

9-
const customStyles = makeStyles({
10-
spaceIcon: {
11-
marginTop: 3,
12-
marginRight: 3
13-
},
14-
headerCell: {
15-
fontWeight: "bold"
16-
},
17-
});
18-
198
function DataTableHeader(props) {
20-
const classes = customStyles();
219
const { headerText, emojiIcon } = props;
2210
return (
2311
<Typography variant='h5'>
2412
<Grid container style={{ "margin": "0.5em" }} direction={'row'}>
25-
<Grid item className={classes.spaceIcon}>
26-
{ emojiIcon }
13+
<Grid item style={{ "marginTop": "3", "marginRight": "3" }}>
14+
{emojiIcon}
2715
</Grid>
2816
<Grid item>
29-
{ headerText }
17+
{headerText}
3018
</Grid>
31-
{ props.children }
19+
{props.children}
3220
</Grid>
3321
</Typography>
3422
);
3523
}
3624

37-
export default withStyles(customStyles)(DataTableHeader);
25+
export default DataTableHeader;

0 commit comments

Comments
 (0)