${escapeHtml(input.linkNote)} Replies go to ${escapeHtml(input.replyTo)}.
Hope Food Pantry
diff --git a/src/pages.tsx b/src/pages.tsx
index 396cd78..97ad4d8 100644
--- a/src/pages.tsx
+++ b/src/pages.tsx
@@ -297,31 +297,56 @@ export function ConfirmationPage(props: {
groupSize?: number;
cancelled?: boolean;
}) {
+ const shift = props.shift;
+ const cancelled = Boolean(props.cancelled);
+ const summary = cancelled
+ ? `${props.name ? `${props.name} is no longer on the ` : 'This signup is no longer for the '}${shift.role} shift.`
+ : `${props.name ? `${props.name} is on the ` : 'This signup is for the '}${shift.role} shift.`;
+ const note = props.managePath
+ ? cancelled
+ ? 'A cancellation email is on the way. The address below still opens this cancelled signup.'
+ : 'A confirmation email is on the way. Save the address below in case the email is late. This browser keeps it for a few minutes. Use it to cancel or switch to a different shift.'
+ : 'If you just signed up, the link stays in this browser for a few minutes. A confirmation email is on the way.';
+ const location = shift.event.location.trim();
return (
- <>
-
{props.cancelled ? 'This signup is cancelled' : "You're signed up"}
-
- {props.cancelled
- ? `${props.name ? `${props.name} is no longer on the ` : 'This signup is no longer for the '}${props.shift.role} shift.`
- : `${props.name ? `${props.name} is on the ` : 'This signup is for the '}${props.shift.role} shift.`}
-
- {props.groupSize && props.groupSize > 1 ?
This signup holds {props.groupSize} spots.
: null}
-
- {props.managePath ? (
- <>
-
- {props.cancelled
- ? 'A cancellation email is on the way. The address below still opens this cancelled signup.'
- : 'A confirmation email is on the way. Save the address below in case the email is late. This browser keeps it for a few minutes. Use it to cancel or switch to a different shift.'}
+
+
+
+
+
+
+
{cancelled ? 'This signup is cancelled' : "You're signed up"}