diff --git a/components/Event.js b/components/Event.js
index 908a81e..44c9a8b 100644
--- a/components/Event.js
+++ b/components/Event.js
@@ -46,24 +46,31 @@ export default function Event({ event }) {
{showSchedule &&
scheduleEvents &&
- scheduleEvents.map(({ name, start, end, venueName }) => (
-
- {start}
- {end && ` - {end}`}
-
- )}
- {name}
}
- {venueName && (
-
- )}
-
+ {eventStart}
+ {eventEnd && ` - {end}`}
+
+ )}
+ {eventName}
}
+ {eventVenueName && (
+
+ )}
+
404.
-You just hit a route that doesn't exist.
+You just hit a route that doesn't exist.
> ); } diff --git a/pages/_document.js b/pages/_document.js index fbf7673..8b251bc 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -4,8 +4,8 @@ import { ServerStyleSheet } from 'styled-components'; export default class MyDocument extends Document { static getInitialProps({ renderPage }) { const sheet = new ServerStyleSheet(); - const page = renderPage((App) => (props) => - sheet.collectStyles(- Public data, from{' '} - {githubUrl(user.login)}, reduced to - `login` and `avatar_url`. -
-{JSON.stringify(user, null, 2)}
- - Public data, from{' '} - {githubUrl(user.login)}, reduced - to `login` and `avatar_url`. -
-{JSON.stringify(user, null, 2)}
- >
- )}
- - Answer 1 -
+Answer 1
See more detailed info on our{' '}
diff --git a/pages/rsvp/[id].js b/pages/rsvp/[id].js
index 760c613..f59ebfa 100644
--- a/pages/rsvp/[id].js
+++ b/pages/rsvp/[id].js
@@ -163,9 +163,8 @@ export default function SingleGroupPage({ group }) {
return initial;
}
- const { inputs, handleChange, clearForm, resetForm } = useForm(
- getInitialFormData
- );
+ const { inputs, handleChange, clearForm, resetForm } =
+ useForm(getInitialFormData);
if (!user || user.isLoggedIn === false) {
return
@@ -320,7 +319,7 @@ export default function SingleGroupPage({ group }) {
gap: '1rem',
}}
>
- {group.guests.map((guest) =>
+ {group?.guests?.map((guest) =>
!guest?.isPlusOne ? (
@@ -389,20 +388,21 @@ export async function getServerSideProps({ params }) {
// TODO: REMOVE THIS WHEN TAKING YOUR SITE TO PRODUCTION
if (process.env.SITE_ENV === 'TEST_SITE') {
- const group = {};
group.id = params.id;
- group.guests = [{
- id: 'TEST_GUEST_ID_12345',
- firstName: 'Test',
- lastName: 'Lastname',
- rsvpStatus: false,
- dietaryNotes: '',
- songRequests: '',
- hasPlusOne: true,
- plusOne: false,
- plusOneFirstName: '',
- plusOneLastName: '',
- }];
+ group.guests = [
+ {
+ id: 'TEST_GUEST_ID_12345',
+ firstName: 'Test',
+ lastName: 'Lastname',
+ rsvpStatus: false,
+ dietaryNotes: '',
+ songRequests: '',
+ hasPlusOne: true,
+ plusOne: false,
+ plusOneFirstName: '',
+ plusOneLastName: '',
+ },
+ ];
group.note = '';
return { props: { group } };
}
diff --git a/pages/travelstay.js b/pages/travelstay.js
index 9730ddf..c983552 100644
--- a/pages/travelstay.js
+++ b/pages/travelstay.js
@@ -78,9 +78,7 @@ export default function TravelAndStayPage() {
- Answer
- Answer There are also hotels in the area such as: Travel Time: X minute drive (X miles) Travel Time: X minute drive (X miles)Hotel Information
Do I need to book a hotel room?
-