add table scope
This commit is contained in:
parent
b89a1103b9
commit
d72a6be009
3 changed files with 6 additions and 7 deletions
|
@ -22,14 +22,14 @@ class SketchListView extends React.Component {
|
|||
/>
|
||||
<table className="sketches-table">
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Created</th>
|
||||
<th>Last Updated</th>
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">Created</th>
|
||||
<th scope="col">Last Updated</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{this.props.sketches.map(sketch =>
|
||||
<tr className="sketches-table__row">
|
||||
<td><Link to={`/projects/${sketch._id}`}>{sketch.name}</Link></td>
|
||||
<td scope="row"><Link to={`/projects/${sketch._id}`}>{sketch.name}</Link></td>
|
||||
<td>{moment(sketch.createdAt).format('MMM D, YYYY')}</td>
|
||||
<td>{moment(sketch.updatedAt).format('MMM D, YYYY')}</td>
|
||||
</tr>
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
"bson-objectid": "^1.1.4",
|
||||
"classnames": "^2.2.5",
|
||||
"codemirror": "^5.14.2",
|
||||
"connect-mongo": "^1.2.0",
|
||||
"connect-mongo": "^1.0.0",
|
||||
"cookie-parser": "^1.4.1",
|
||||
"dotenv": "^2.0.0",
|
||||
"escape-string-regexp": "^1.0.5",
|
||||
|
|
|
@ -3,7 +3,7 @@ import mongoose from 'mongoose';
|
|||
import bodyParser from 'body-parser';
|
||||
import cookieParser from 'cookie-parser';
|
||||
import session from 'express-session';
|
||||
const MongoStore = require('connect-mongo')(session);
|
||||
const MongoStore = require('connect-mongo/es5')(session);
|
||||
import passport from 'passport';
|
||||
import path from 'path';
|
||||
|
||||
|
@ -83,4 +83,3 @@ app.listen(serverConfig.port, (error) => {
|
|||
});
|
||||
|
||||
export default app;
|
||||
|
||||
|
|
Loading…
Reference in a new issue