added 'event' to endpoint location

This commit is contained in:
mmacierzanka committed 2021-10-03 16:48:30 +02:00
1 parent 12611b2158
commit 9be4bd9b55
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ export const App = (props) => {
{Array.isArray(props.events) &&
props.events.map((e) => {
return (
<Route key={e._id} exact path={`/${e._id}`}>
<Route key={e._id} exact path={`/event/${e._id}`}>
<Event id={e._id}></Event>
</Route>
);
+1 -1
View File
@@ -4,7 +4,7 @@ import styles from "./index.module.scss";
export const EventPreview = (props) => {
return (
<Link to="/" className={styles.link}>
<Link to={`/event/${props.id}`} className={styles.link}>
<div className={styles.item}>
<span className={styles.location}>{props.name ?? "Event name"}</span> <br></br>
<span>