Skip to content

Commit 00973a9

Browse files
price and date
1 parent a60c2ab commit 00973a9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

frontend/src/components/Events/EventList/EventItem/EventItem.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const EventItem = (props) => {
44
return (
55
<li key={props.eventId}>
66
<h1>{props.title}</h1>
7-
<h2>{props.price}</h2>
7+
<h2>
8+
${props.price} - {new Date(props.date).toLocaleDateString()}
9+
</h2>
810
{props.userId === props.creatorId ? (
911
<div>You are the creator</div>
1012
) : (

frontend/src/components/Events/EventList/EventList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const EventList = (props) => {
99
eventId={event._id}
1010
title={event.title}
1111
price={event.price}
12+
date={event.date}
1213
userId={props.authUserId}
1314
creatorId={event.creator._id}
1415
/>

0 commit comments

Comments
 (0)