Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Commit fd8ba39

Browse files
committed
Changed events to use eventTime
1 parent 4059267 commit fd8ba39

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

backend/routes/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ router.get('/', async (req, res, next) => {
3535

3636
const results = await Event.find(
3737
conditions,
38-
'_id name createdAt location members'
38+
'_id name createdAt eventTime location members'
3939
)
4040
.sort({ [sortBy]: order })
4141
.lean()

frontend/src/components/Common/EventTable.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class EventTable extends Component {
1919
<thead>
2020
<tr>
2121
<th>Name</th>
22-
<th>Date</th>
2322
<th>Location</th>
23+
<th>Date</th>
2424
{allowed && <th># Attended</th>}
2525
</tr>
2626
</thead>
@@ -29,8 +29,9 @@ class EventTable extends Component {
2929
events.map(event => (
3030
<tr key={event._id + 1} id={event._id} onClick={this.onClick(event._id)}>
3131
<td>{event.name}</td>
32-
<td>{formatDate(event.createdAt)}</td>
32+
{/* <td>{formatDate(event.createdAt)}</td> */}
3333
<td>{event.location}</td>
34+
<td>{formatDate(event.eventTime)}</td>
3435
{allowed && <td>{event.members ? event.members.length : 0}</td>}
3536
</tr>
3637
))}

frontend/src/index.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ h3 {
120120
}*/
121121

122122
.section-container {
123-
max-width: 55em;
124-
width: 90%;
123+
/* max-width: 55em; */
124+
max-width: 57.5em;
125+
/* width: 90%; */
125126
margin: 0 auto;
126127
}
127128

0 commit comments

Comments
 (0)