Skip to content

Commit 85aea4d

Browse files
committed
fix warnings
1 parent 1edb912 commit 85aea4d

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

src/client/src/pages/Admin.js

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,13 @@ import {withStyles} from '@material-ui/core/styles';
1818
import _ from 'lodash';
1919
import moment from "moment";
2020

21-
2221
const styles = theme => ({
2322
backdrop: {
2423
zIndex: theme.zIndex.drawer + 1,
2524
color: '#fff',
2625
}
2726
});
2827

29-
const StyledTableCell = withStyles((theme) => ({
30-
head: {
31-
backgroundColor: 'initial', // here
32-
fontWeight: 600,
33-
}
34-
}))(TableCell);
35-
36-
const StyledTableRow = withStyles((theme) => ({
37-
root: {
38-
'&:nth-of-type(even)': {
39-
backgroundColor: 'initial', // and here
40-
}
41-
}
42-
}))(TableRow);
43-
4428

4529
class Admin extends Component {
4630
constructor(props) {
@@ -159,8 +143,8 @@ class Admin extends Component {
159143
<Table aria-label="simple table" className={classes.table}>
160144
<TableHead>
161145
<TableRow>
162-
<StyledTableCell>File Type</StyledTableCell>
163-
<StyledTableCell>Last Updated</StyledTableCell>
146+
<TableCell><b>File Type</b></TableCell>
147+
<TableCell><b>Last Updated</b></TableCell>
164148
</TableRow>
165149
</TableHead>
166150
<TableBody>
@@ -171,10 +155,10 @@ class Admin extends Component {
171155
let fileDateFormatted = moment(fileDateOnlyNumbers, "YYYYMMDDhmmss").format("MMMM Do YYYY, h:mm:ss a");
172156

173157
return (
174-
<StyledTableRow>
158+
<TableRow>
175159
<TableCell>{fileName}</TableCell>
176160
<TableCell>{fileDateFormatted}</TableCell>
177-
</StyledTableRow>
161+
</TableRow>
178162
)
179163
})
180164
}
@@ -201,10 +185,10 @@ class Admin extends Component {
201185
<TableBody>
202186
<TableRow key='time'>
203187
<TableCell align="left" component="th" scope="row">
204-
Last Analysis
188+
<b>Last Analysis</b>
205189
</TableCell>
206190
<TableCell align="left">
207-
{moment(this.state.lastExecution, "dddd MMMM Do h:mm:ss YYYY").local().format("MMMM Do YYYY, h:mm:ss a")}
191+
<b>{moment(this.state.lastExecution, "dddd MMMM Do h:mm:ss YYYY").local().format("MMMM Do YYYY, h:mm:ss a")}</b>
208192
</TableCell>
209193
</TableRow>
210194
{this.state.statistics.map((row, index) => (

0 commit comments

Comments
 (0)