Skip to content

Commit

Permalink
Merge pull request #1627 from starknet-io/bugfix/fix-roadmap-404
Browse files Browse the repository at this point in the history
Fix roadmap 404
  • Loading branch information
rafaelcruzazevedo authored Nov 9, 2023
2 parents 495d3f0 + cde9a09 commit 5367052
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 5367052

Please sign in to comment.