Skip to content

Commit

Permalink
Fix roadmap 404
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-aac committed Nov 9, 2023
1 parent 495d3f0 commit cde9a09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ const stages: KeyValuePairs = {
};

export type RoadmapPostProps = {
env: {
CLOUDFLARE_RECAPTCHA_KEY: string;
};
roadmapPost: RoadmapPostType;
roadmapVersion?: RoadmapVersion;
locale: string;
psCopy?: string;
}

export default function RoadmapPost({
env,
roadmapPost,
locale,
roadmapVersion,
Expand Down Expand Up @@ -140,7 +144,7 @@ export default function RoadmapPost({
<Spacer height="32px" />
<Divider mb="6" />
<MarkdownBlock body={psCopy as string} />
<RoadmapSubscribeForm isOpen={isOpen} setIsOpen={setIsOpen} />
<RoadmapSubscribeForm env={env} isOpen={isOpen} setIsOpen={setIsOpen} />
<Divider mt="6" />
</Container>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export async function onBeforeRender(pageContext: PageContextServer) {
console.log('roadmapVersions', roadmapVersions)

const pageProps: RoadmapPostProps = {
env: {
CLOUDFLARE_RECAPTCHA_KEY: import.meta.env.VITE_CLOUDFLARE_RECAPTCHA_KEY,
},
roadmapPost,
roadmapVersion: roadmapVersions.find(r => r.version === roadmapPost.version)!,
locale,
Expand Down

0 comments on commit cde9a09

Please sign in to comment.