fix: Single Use Private link does not regenerate after use (#11705)

* feat: pass down props for hashedlink

* feat: update booking mapper

---------

Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
AldrinandSyed Ali Shahbaz authored and GitHub committed 2023-10-06 11:07:55 +01:00
1 parent e0c27d8721
commit 1298b05e1a
5 files changed
+19 -4

No files matched your search

+3
View File
@@ -27,6 +27,7 @@ export default function Type({
isTeamEvent,
entity,
duration,
hashedLink,
}: PageProps) {
return (
<main className={getBookerWrapperClasses({ isEmbed: !!isEmbed })}>
@@ -46,6 +47,7 @@ export default function Type({
isTeamEvent={isTeamEvent}
entity={entity}
duration={duration}
hashedLink={hashedLink}
/>
</main>
);
@@ -149,6 +151,7 @@ async function getUserPageProps(context: GetServerSidePropsContext) {
// Sending the team event from the server, because this template file
// is reused for both team and user events.
isTeamEvent,
hashedLink: link,
},
};
}